[go: up one dir, main page]

Skip to content

shamzahasan88/HHStaticThumbSliderView

Repository files navigation

HHStaticThumbSliderView

CI Status Version License Platform

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

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.
}

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

Author

Hamza Hasan, shamzahasan88, shamzahasan88@gmail.com

License

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