HHStaticThumbSliderView 0.1.1

HHStaticThumbSliderView 0.1.1

Maintained by Hamza Hasan.



  • By
  • shamzahasan88

HHStaticThumbSliderView

CI Status Version License Platform

Example

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

Requirements

Installation

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

pod 'HHStaticThumbSliderView'

Preview

How to use

  • Drop a UIView in UIViewController

  • Assign HHStaticThumbSliderView as Class to that view

  • Assign properties in HHStaticThumbSliderView inspector

  • To get tap on thumbs, first import HHStaticThumbSlider" and assign outlet in your view controller's class
import HHStaticThumbSliderView

@IBOutlet weak var hhStaticSliderViewWithBlackThumb: HHStaticThumbSliderView!

  • In viewDidLoad assign a method to "onSelect" property of HHStaticThumbSliderView
override func viewDidLoad() {
    super.viewDidLoad()
    hhStaticSliderViewWithBlackThumb.onSelect = onBlackThumbSelect
}

func onBlackThumbSelect(index: Int) {
    print("Black thumb tapped with index: \(index)")
}

Author

Hamza Hasan, shamzahasan88, [email protected]

License

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