A UIControl subclass that draws itself based on the number of segments provided.
Installation is best managed using Carthage. Add github "airg/iOS-airSegmentedControl"
to your cartfile and run carthage install
, see Carthage Installation Guide.
You can also install using Cocoapods, add pod 'airSegmentedControl', '~> 1.0.10'
to your podfile.
To get IBDesignable
and IBInspectable
to work in Interface Builder, add the InspectableAirSegmentedControl file to your project and use the InspectableAirSegmentedControl
subclass.
Check out the documentation. All calls should also be documented in the generated Swift interface.
airSegmentedControl is currently written in Swift 4 with Xcode 9.2.
Documentation is generated using Jazzy, a very useful tool for generating pretty docs.
Before opening a pull request, be sure to run jazzy
to regenerate the docs.