Conversation
hsousa
left a comment
There was a problem hiding this comment.
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?