CocoaPods trunk is moving to be read-only. Read more on the blog, there are 12 months to go.
| TestsTested | ✗ |
| LangLanguage | SwiftSwift |
| License | MIT |
| ReleasedLast Release | Oct 2017 |
| SwiftSwift Version | 4.0 |
| SPMSupports SPM | ✗ |
Maintained by Chris Amanse, Chris Amanse.
A checkbox button UI component for iOS built with Swift.
CheckboxButton
UIControl. The container will fit the frame of the control while maintaining its aspect ratio.This project can be installed in different ways:
CheckboxButton.swift to your projectgithub "chrisamanse/CheckboxButton" in your CartfileCheckboxButton can be used in two different ways:
UIButton to CheckboxButton.init(frame: CGRect)
You can run the example app located in the same project to see how it's used.
CheckboxButton will be toggled when a .TouchedUpInside event occurred. You can observe changes in state using the UIControlEvents.ValueChanged event.
You can check if the checkbox is toggled by reading the on property. You can also set this property to programmatically set the state of the checkbox.
if checkbox.on {
print("Checkbox is checked")
}
// Toggle
checkbox.on = false // Set to false to uncheck
Copyright (c) 2016 Joe Christopher Paul Amanse
This software is distributed under the MIT License.