Localize-Swift icon indicating copy to clipboard operation
Localize-Swift copied to clipboard

No right-to-left

Open nooralibutt opened this issue 8 years ago • 4 comments

There is no support for right to left layouts like Arabic Language

nooralibutt avatar Dec 14 '16 15:12 nooralibutt

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 avatar May 11 '17 19:05 keegho

@keegho Your approach is not recommended by Apple

musbaalbaki avatar Jul 29 '17 19:07 musbaalbaki

also it wont work on UITextFiled alignment :(

embassem avatar Aug 05 '17 14:08 embassem

@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.

hemangshah avatar Apr 15 '18 08:04 hemangshah