-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UITextField wrong rtl alignment with latest version #61
Labels
Comments
I have same issue, did you find a solution for this ? |
sam here |
I'm trying to think of a solution, but until I find a solution, you can handle that in your func updateTextAligment() {
if(isRightToLeft) {
self.textAlignment = .left
} else {
self.textAlignment = .right
}
} |
@Abedalkareem This is my solution if it helps: import LanguageManager_iOS
extension NSTextAlignment {
static var defaultAlignment: NSTextAlignment {
return LanguageManager.shared.currentLanguage == .ar ? .right : .left
}
} Usage myTextField.textAlignment = .defaultAlignment |
@rami965 why everyone thinks that Arabic is the single language with RTL? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is a screenshot for the representing the issue:
What I tried:
Note that I'm using a navigation controller and the rtl is working fine except for text fields.
The text was updated successfully, but these errors were encountered: