yonat / MultiSlider

UISlider clone with multiple thumbs and values, range highlight, optional snap intervals, optional value labels, either vertical or horizontal.
MIT License
494 stars 113 forks source link

UIKit support #91

Closed marcusykim closed 2 years ago

marcusykim commented 2 years ago

Can you make this available in UIKit vs just SwiftUI

yonat commented 2 years ago

This is already a UIKit component, see instructions in the README:

let slider = MultiSlider()
slider.value = [1, 4.5, 5]
slider.addTarget(self, action: #selector(sliderChanged), for: .valueChanged) // continuous changes
slider.outerTrackColor = .lightGray // outside of first and last thumbs
// etc.