Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localization issue (RTL) #95

Open
lotfyahmed opened this issue Mar 6, 2019 · 2 comments
Open

Localization issue (RTL) #95

lotfyahmed opened this issue Mar 6, 2019 · 2 comments

Comments

@lotfyahmed
Copy link

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

@basmaamahmoud
Copy link

did you find a solution??

@Afrah-Tayyab
Copy link

Afrah-Tayyab commented Sep 21, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants