aakpro
aakpro

Reputation: 1578

Changing iOS app localization run time

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

Answers (1)

Umair Ali
Umair Ali

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

Related Questions