Open lotfyahmed opened 5 years ago
did you find a solution??
Make an Outlet for Range Slider. after that make an uiView extension in that make a function that rotate the view. i.e @IBOutlet weak var rangeSlide: TTRangeSlider!
//Now creating rotate function that rotate the slider view
func rotate(degrees: CGFloat) {
let degreesToRadians: (CGFloat) -> CGFloat = { (degrees: CGFloat) in
return degrees / 180.0 * CGFloat.pi
}
self.transform = CGAffineTransform(rotationAngle: degreesToRadians(degrees))
}
if language is arabic{
Now call this function like rangeSlider.rotate(180).
}else{
Now call this function like rangeSlider.rotate(0). }
Enjoy Hope it works for you.
Did you supported RTL direction?
In arabic language (right direction), we faced that min value should be in left position and max should be in the right?
Thanks