Disable RTL on specific UIViewController in iOS

422 Views Asked by At

Is there any way to disable Right-to-Left in specific ViewController? I have tried forcing semanticContentAttribute to Left-to-Right but it is not working.

self.view.semanticContentAttribute = .forceLeftToRight
1

There are 1 best solutions below

3
Poornima Mishra On

Add this code in your view did load -:

 UIView.appearance().semanticContentAttribute = .forceLeftToRight