HHStaticThumbSliderView

Easy to use static Thumb Slider with multiple thumbs.

Example

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

Installation

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

pod 'HHStaticThumbSliderView'

Preview

4732f73616d706c652e676966

How to use

  • Drop a UIView in UIViewController

  • Assign HHStaticThumbSliderView as Class to that view

6f64756c652e6a7067

  • Assign properties in HHStaticThumbSliderView inspector

706e67

  • 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]

GitHub