Custom UIControl subclass that implements switch-like behavior (toggle between selected and deselcted states) with a highly customizable checkbox-like appearacne.
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!
- Interface Builder support (
@IBInspectableand@IBDesignable).





