Skip to content

nicolas-miari/iOS-Animated-Checkbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iOS Animated Checkbox

Custom UIControl subclass that implements switch-like behavior (toggle between selected and deselcted states) with a highly customizable checkbox-like appearacne.

Main Features/Configurable Attributes

The visual appearance is highly configurable:

  • Custom title color, typeface, and text size.
  • Custom colors for the checkbox border and fill, on both states.
  • Custom checkbox size (always vertically aligned with respect to the title label).
  • Three checkbox shape options: Rounded rectangle, Circle, and Superellipse.
  • Custom corner radius (for rounded rectangle and superellispe shapes).
  • Two layout options: title label either to the left or right of the checkbox (empty label is also supported, of course).
  • Fill on the selected state can either overlap the border or be contained within it (see examples below).

*Tick (✔︎) shape and color are not currenlty customizable. Feel free to fork the repository!

Additional Features

  • Interface Builder support (@IBInspectable and @IBDesignable).

Configuration Examples

1. Title Label On The Left

Animated Gif

2. Title Label On The Right

Animated Gif

3. Custom Border Color When Selected

Animated Gif

4. Fill Overdraw

Animated Gif

5. Circle Shape

Animated Gif

6. Superellipse Shape

Animated Gif

About

Custom UIControl subclass that implements a checkbox-like switch with smooth transition betweens states.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages