Created
June 28, 2021 21:39
-
-
Save novinfard/9a9d48eae4ca8feb57ae633991e3a246 to your computer and use it in GitHub Desktop.
[Force RTL in UIKit]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AppDelegate: UIResponder, UIApplicationDelegate { | |
func application(_ application: UIApplication, | |
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { | |
// Force all UIKit views to RTL | |
UIView.appearance().semanticContentAttribute = .forceRightToLeft | |
return true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment