When the application language is Arabic, (interactivePopGestureRecognizer) works from right to left so the user has to swipe from right edge to pop viewController.I wanna to force interactivePopGestureRecognizer to swipe from left to right (user has to swipe from left edge) despite the app language because I wanna to fix the back button at left side at both English and Arabic languages.
I have used [[UIView appearance] setSemanticContentAttribute:UISemanticContentAttributeForceLeftToRight] ;
but this has fixed half of the problem as it made the interactivePopGestureRecognizer in Arabic language swipes from left to right but the user still swipe from right edge.Any suggestion???
Asked
Active
Viewed 424 times
3

SamehDos
- 1,183
- 1
- 10
- 23
-
Why are you doing this? Do you have an in-app language switcher? – wakachamo Mar 16 '16 at 00:52
-
Yes, I've. I am doing that because I am manually switch the language because I do not want the app to be closed when the user switch the language. – SamehDos Mar 16 '16 at 05:30
-
2This is not recommended. Your users will be very confused to find out that your app is not respecting the system language. – wakachamo Mar 16 '16 at 17:52
-
Yes don't handle localisation manually within the app, go by what the OS does for localisation change. – Satheesh Mar 20 '16 at 10:33
-
@SamehDos have you found any solution? Im facing the same problem. – Maniganda saravanan Mar 25 '17 at 14:40
-
@SamehDos [[UIView appearance] setSemanticContentAttribute:UISemanticContentAttributeForceLeftToRight] ; this thing works above iOS 9. how can you implement it anyway on iOS 7 and iOS 8 ? – Majid Bashir Mar 27 '18 at 09:37