A slider with two value controls.
To integrate Slider2 into your Xcode project using CocoaPods, specify it in your Podfile
:
pod "Slider2"
To integrate Slider2 into your Xcode project using Carthage, specify it in your Cartfile
:
github "karanokk/Slider2"
Click "Files -> Swift Package Manager -> Add Package Dependency..." in Xcode's menu and search "https://github.com/karanokk/Slider2"
let slider = Slider2()
slider.minimumValue = 1
slider.maximumValue = 10
slider.thumbImage = UIImage(named: "thumb")
slider.thumbImage2 = UIImage(named: "thumb2")
slider.value = 3
slider.value2 = 7
slider.addTarget(self, action: #selector(valueChanged(slider:)), for: .valueChanged)
Or working with storyboard
You can find samples in Demo target.