Localize-Swift
Localize-Swift copied to clipboard
No right-to-left
There is no support for right to left layouts like Arabic Language
You can easily implement right to left by forcing it. This is the way i do it.
if Localize.currentLanguage() == "ar" {
UIView.appearance().semanticContentAttribute = .forceRightToLeft
}
@keegho Your approach is not recommended by Apple
also it wont work on UITextFiled alignment :(
@keegho 's approach is correct and I use the same every time if RTL UI is required for my app. @embassem for UITextField we have to set the textAlignment
.