I'm working on an app which supports two languages(English & Arabic). I have a loginCViewController in which I have a UIButton and UITextField. When I switch to Arabic, my UIButton semanticContentAttribute is forced RightToLeft which I don't want.
Arabic
English
This is what I have tried so far, but My UIButton still changes it's semanticContentAttribute from RightToLeft when switched to Arabic Language.
I want my loginViewController to look same for both languages.
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
numberButton.semanticContentAttribute = .forceLeftToRight
}
I even tried it in viewDidLayoutSubviews() but still, same results.
override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()
numberButton.semanticContentAttribute = .forceLeftToRight
}
Any help regarding this would be highly appreciated.

