SJSegmentedControl 1.0

SJSegmentedControl 1.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Jan 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by Sam Jones.



SJSegmentedControl

SJSegmentedControl GIF

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Usage

self.segmentedControl.delegate = self
self.segmentedControl.titles = ["First", "Second", "Third"]
self.segmentedControl.thumbColor = UIColor.blue
self.segmentedControl.borderColour = UIColor.blue
self.segmentedControl.unselectedLabelColor = UIColor.black

Requirements

iOS 10.0+

Installation

SJSegmentedControl is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "SJSegmentedControl"

Author

Sam Jones, [email protected]

License

SJSegmentedControl is available under the MIT license. See the LICENSE file for more info.

N.B.

This library is adapted from this tutorial