Abedalkareem/LanguageManager-iOS

Trying to force content mode LTR , RTL in stackview regarding the change of language

MSawalha opened this issue · 2 comments

I am trying to force content mode in the stackviews regarding the change of language between eng and arabic, however i am expecting when i force mode, it shouldn't flip when i change the language, is there something missing or i am doing something wrong ?

Hi Mohammed,

if you need to do that, you need to do it from the code
@IBOutlet weak var stackView: UIStackView!

  override func viewDidLoad() {
    super.viewDidLoad()
   stackView.semanticContentAttribute = .forceLeftToRight
  }

Thanks.

Thanks, will test it and close the issue when done, thanks for the fast response Cheers