-
Notifications
You must be signed in to change notification settings - Fork 196
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
RTL support #43
base: master
Are you sure you want to change the base?
RTL support #43
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @nickolas-pohilets! Thanks a lot for this addition, and sorry I'm only answering now! 😞
Overall code LGTM, but I don't see any reason to have a property to toggle RTL (it's a system setting and if we support it, we should always respect it). What are your thoughts about removing it?
I don't have any objections to remove the property - in my code I'm always setting it to YES. Also there is already a property semanticContentAttribute in UIView. Probably using that one would be the better approach. |
Interesting, I didn't know about So maybe besides ditching the property,
That would cover automatically flipping the content when a user has the device in a RTL language, but also if someone decides he wants to manually force the direction. What do you think? |
If Starting from iOS 10, there is a nice property:
Starting from iOS 9, there is a class method Before iOS 9, semantic content does not exists, so I think just |
Hi again! Wow, thanks a lot for the rich information on this subject! 😍 So it sounds like we should use
Or do you think it's also worth it to validate Thanks for helping out with this and for the great followup! |
Hello, I've added support for flipping control for RTL languages, and fixed couple compiler warnings. Let me know if you have any comments.
Could you pls merge in back and bump version in the podspec?