How to set Two side slider in swift
follow this code
import RangeSeekSlider
@IBOutlet weak var priceSilderView: RangeSeekSlider!
func setCustomSlider()
{
priceSilderView.delegate = self
priceSilderView.minValue = 1
priceSilderView.maxValue = 10000
priceSilderView.maxLabelColor = UIColor.clear
priceSilderView.minLabelColor = UIColor.clear
priceSilderView.handleBorderColor = UIColor(red: 132/255, green: 178/255, blue: 124/255, alpha: 1)
priceSilderView.handleColor = UIColor(red: 132/255, green: 178/255, blue: 124/255, alpha: 1)
priceSilderView.tintColor = COLOR.Black_Alpha_Point_Twentysix.withAlphaComponent(0.05)
// priceSilderView.handleDiameter = 20
priceSilderView.handleImage = imageLiteral(resourceName: "slider")
priceSilderView.colorBetweenHandles = UIColor(red: 132/255, green: 178/255, blue: 124/255, alpha: 1)
priceSilderView.lineHeight = 4
priceSilderView.selectedHandleDiameterMultiplier = 1.0
}
Comments
Post a Comment