CustomSegmentControl 0.1.6

CustomSegmentControl 0.1.6

Maintained by sathishvgs.



  • By
  • Sathish Kumar

CustomSegmentControl

CI Status Version License Platform

Example

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

fullmaterial

Requirements

This Pod requires the deployment target of iOS 9.0 or greater. Supports Swift 4

Usage

  let customSegmented = CustomSegmented(frame: CGRect(x: 0, y: 50, width: self.view.frame.width, height: 50), buttonTitles: ["On", "Off", "Neutral", "Custom"])

  // Plz maintain the order, otherwise swipe will not work by chance
  view.addSubview(customSegmented)
  customSegmented.onsegmentTapped = self
  customSegmented.configViews()

Installation

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

pod 'CustomSegmentControl'

Author

[email protected], [email protected]

License

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