Use the following lines in the didFinishLaunchingWithOptions method when you want an Arabic language layout, For SWIFT
UIView.appearance (). semanticContentAttribute = .forceRightToLeft
For goal C
[Appearance of UIView] .semanticContentAttribute = UISemanticContentAttributeForceRightToLeft;
and reload the application using
[self application:app didFinishLaunchingWithOptions:nil]
in another method in appDelegate. Call this method when you change the application language.
Use the opposite for the English localization of the application.
source share