Skip to content

Commit

Permalink
force right to left language
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjørn Inge Berg committed Dec 27, 2023
1 parent 7575ee2 commit 0029e9d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
<key>SchemeUserState</key>
<dict>
<key>testslider3.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>1</integer>
</dict>
<key>testwidgetslider3Extension.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
Expand Down
5 changes: 5 additions & 0 deletions testslider3/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@ import SlideButton

@main
struct SliderApp : App {
init () {
UserDefaults.standard.set(["ar"], forKey: "AppleLanguages")
}
var body: some Scene {
WindowGroup {
ContentView()
.environment(\.locale, Locale(identifier: "ar"))
.environment(\.layoutDirection, .rightToLeft)
}
}
}
Expand Down

0 comments on commit 0029e9d

Please sign in to comment.