I’m making an attempt to localize my SwiftUI app for RTL languages however having bother getting the views to be mirrored (navigation presentation route, hyperlink chevron route, toolbar objects location and so on.) I created a very easy challenge with the code under and once I edit the scheme to make use of “Proper-to-Left Pseudolanguage” for “App Language” the views do get mirrored. Nonetheless, once I select Hebrew or Arabic and even set the simulator or system’s system language to an RTL language, it doesn’t mirror and reveals the identical means it does for LTR languages.
struct ContentView: View {
var physique: some View {
NavigationStack {
Record {
ForEach(1..<10) { i in
NavigationLink {
Textual content("Hey world")
} label: {
Textual content("(i)")
}
}
}
}
}
}
The primary picture is what I anticipate (when utilizing “Proper-to-Left Pseudolanguage”) and second picture is the way it’s proven for Hebrew/Arabic which is not mirrored