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.

 

. . .

Comments (2)

Add Your Comment

  • Ramzi Tawfeek
    this is code is working well, but we have issue in performance, app is being slow, do you have idea, why the app is slow when controlling the RTL and LTR manually?
    • kunal prasad
      Hi,
      Sorry for your late Reply , actually there is noting any issue regarding app performance it just change the view direction & nothing else so please check the other part of your code .
  • css.php
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just recieved your project brief and our expert will contact you shortly.
    Send Again
    Close