To run the example project, clone the repo, and run pod install
from the Example directory first.
HHStaticThumbSliderView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'HHStaticThumbSliderView'
-
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 ofHHStaticThumbSliderView
override func viewDidLoad() {
super.viewDidLoad()
hhStaticSliderViewWithBlackThumb.
}
func onBlackThumbSelect(index: Int) {
print("Black thumb tapped with index: \(index)")
}
Hamza Hasan, shamzahasan88, shamzahasan88@gmail.com
HHStaticThumbSliderView is available under the MIT license. See the LICENSE file for more info.