Custom circular checkbox button that can be quickly integrated from Storyboard without writing any extra code.
It's super easy to use, just follow the below steps to integrate it quickly:
Using CocoaPods
Add the following line to your Podfile:
pod 'MAGCheckbox'Run pod install, and you should now have the latest MAGCheckbox release.
- Download and extract the files.
- Import the MAGCheckbox folder in your project.
- Open Storyboard and drag button on your view controller.
- Set equal width and height. Recommended width and height is 28 but you can increase it.
- Set it's type as Custom and remove title.
- Set it's Class as MAGCheckbox
- Use selected UIButton property to toggle it's state.
You can use all the properties of UIButton alongwith below properties:
- borderColor to set different border color when checkbox is deselected.
- borderWidth to increase borderWidth to more than 1.0;
- fillColor to set different fill color when checkbox is selected.