Reputation: 1578
How can I change my iOS app localization runtime the same as Booking.com iOS app. The app doesn't need to be restarted after changing language. Do I need to handle everything by code and not using iOS localization system?
How does it change layout from RTL to LTR and vise versa in run time?
Upvotes: 1
Views: 88
Reputation: 836
You can change app localization at a run time please check this.
To change layout from Right to left and left to right you can use bellow line of code:
UIView.appearance().semanticContentAttribute = .forceRightToLeft
UIView.appearance().semanticContentAttribute = .forceLeftToRight
Upvotes: 1