Perform LTR and RTL operation in Swift

Perform LTR and RTL operation in Swift

Sometimes we need to make the application for both LTR as well as RTL. here is some concepts that will work for LTR, RTL but this will support for iOS 9.0  and greater.

Here are some steps to follow:

1: Select the project and set Localization language and select (use base internationalization).

2: Now you write code where the user will choose the language.

3: Here “rootnav” is the starting view controller “storyboardId” so you can set your parent view controller storyBoardId by this way it will affect for all view controller and perform the desired operation.