Skip to content

Commit

Permalink
Merge pull request #94 from jp26jp/patch-1
Browse files Browse the repository at this point in the history
Updated syntax and fixed location of example images
  • Loading branch information
Marxon13 authored May 16, 2017
2 parents 0ff6028 + a0b141e commit 884afdb
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Create beautiful, customizable, extendable, animated checkboxes on iOS. Completely configurable through interface builder. It has several built in animations, custom value support, a mixed state, checkmark and radio styles, circular and rounded rectangle box shapes, as well as full color customization. See the demo app to play with all the features.

##Table of Contents
## Table of Contents

* [**Recent Changes**](#recent-changes)
* [**Documentation**](#documentation)
Expand All @@ -28,7 +28,7 @@ Create beautiful, customizable, extendable, animated checkboxes on iOS. Complete
* [License](license)


##Recent Changes
## Recent Changes

- **2.2.0:** M13Checkbox has been converted to Swift 3.

Expand All @@ -39,45 +39,47 @@ Check out the demo app to change the properties of the checkbox and see the chan
### Animations

- **Animation `enum`:** The possible animations for switching to and from the unchecked state.

- **Stroke:**

![Stroke Sample](Resources/Samples/Stroke Sample.gif)
![Stroke Sample](Resources/Samples/Stroke%20Sample.gif)
- **Fill:**

![Fill Sample](Resources/Samples/Fill Sample.gif)
![Fill Sample](Resources/Samples/Fill%20Sample.gif)
- **Bounce (Stroke):**

![Bounce Stroke Sample](Resources/Samples/Bounce Stroke Sample.gif)
![Bounce Stroke Sample](Resources/Samples/Bounce%20Stroke%20Sample.gif)
- **Bounce (Fill):**

![Bounce Fill Sample](Resources/Samples/Bounce Fill Sample.gif)
![Bounce Fill Sample](Resources/Samples/Bounce%20Fill%20Sample.gif)
- **Expand (Stroke):**

![Expand Stroke Sample](Resources/Samples/Expand Stroke Sample.gif)
![Expand Stroke Sample](Resources/Samples/Expand%20Stroke%20Sample.gif)
- **Expand (Fill):**

![Expand Fill Sample](Resources/Samples/Expand Fill Sample.gif)
![Expand Fill Sample](Resources/Samples/Expand%20Fill%20Sample.gif)
- **Flat (Stroke):**

![Flat Stroke Sample](Resources/Samples/Flat Stroke Sample.gif)
![Flat Stroke Sample](Resources/Samples/Flat%20Stroke%20Sample.gif)
- **Flat (Fill):**

![Flat Fill Sample](Resources/Samples/Flat Fill Sample.gif)
![Flat Fill Sample](Resources/Samples/Flat%20Fill%20Sample.gif)
- **Spiral:**

![Spiral Sample](Resources/Samples/Spiral Sample.gif)
![Spiral Sample](Resources/Samples/Spiral%20Sample.gif)
- **Fade (Stroke):**

![Fade Stroke Sample](Resources/Samples/Fade Stroke Sample.gif)
![Fade Stroke Sample](Resources/Samples/Fade%20Stroke%20Sample.gif)
- **Fade (Fill):**

![Fade Fill Sample](Resources/Samples/Fade Fill Sample.gif)
![Fade Fill Sample](Resources/Samples/Fade%20Fill%20Sample.gif)
- **Dot (Stroke):**

![Dot Stroke Sample](Resources/Samples/Dot Stroke Sample.gif)
![Dot Stroke Sample](Resources/Samples/Dot%20Stroke%20Sample.gif)
- **Dot (Fill):**

![Dot Fill Sample](Resources/Samples/Dot Fill Sample.gif)
![Dot Fill Sample](Resources/Samples/Dot%20Fill%20Sample.gif)

- **stateChangeAnimation `Animation`:** The type of animation to preform when changing from the unchecked state to any other state.
- **animationDuration `NSTimeInterval`:** The duration of the animation that occurs when the checkbox switches states. The default is 0.3 seconds.

Expand All @@ -91,21 +93,21 @@ Check out the demo app to change the properties of the checkbox and see the chan
### State

- **CheckState `enum`:** The possible states the check can be in.
- **Unchecked:** No check is shown.
- **Checked:** A checkmark is shown.
- **Mixed:** A dash is shown.
- `unchecked` No check is shown.
- `checked` A checkmark is shown.
- `mixed` A dash is shown.
- **checkState `CheckState`:** The current state of the checkbox.
- **setCheckState(newState: `CheckState`, animated: `Bool`):** Change the check state with the option of animating the change.
- **toggleCheckState(animated: `Bool` = false):** Toggle the check state between `Unchecked` and `Checked` states.

### Appearance

- **MarkType:** The possible shapes of the mark.
- **Checkmark:** The mark is a standard checkmark.
- **Radio:** The mark is a radio style fill.
- `checkmark` The mark is a standard checkmark.
- `radio` The mark is a radio style fill.
- **BoxType:** The possible shapes of the box.
- **Circle:** The box is a circle.
- **Square:** The box is square with optional rounded corners.
- `circle` The box is a circle.
- `square` The box is square with optional rounded corners.
- **tintColor:** The main color of the `Selected` and `Mixed` states for certain animations.
- **secondaryTintColor `UIColor`:** The color of the box in the unselected state.
- **secondaryCheckmarkTintColor `UIColor`:** The color of the checkmark or radio for certain animations. (Mostly animations with a fill style.)
Expand All @@ -116,7 +118,6 @@ Check out the demo app to change the properties of the checkbox and see the chan
- **boxType `BoxType`:** The shape of the checkbox.
- **hideBox `Bool`:** Wether or not to hide the box.


<br>

## Getting Started
Expand Down Expand Up @@ -182,8 +183,7 @@ view.addSubview(checkbox)

<br>


##Project Structure
## Project Structure

**M13Checkbox**
The main interface for M13Checkbox is the `M13Checkbox` class. It is a subclass of `UIControl` and handles the configurable properties, as well as touch events.
Expand All @@ -204,7 +204,7 @@ A shim that gives the ability to set the enum values of `M13Checkbox` in Interfa

<br>

##Project Details
## Project Details

### Requirements

Expand Down

0 comments on commit 884afdb

Please sign in to comment.