iOS 17 List with layoutDirection

Hello,

I have noticed weird behaviour of List on iOS 17 when \.layoutDirection is changed. It appears that frame of child views in List is wrongly updated. Below I include code and screenshots representing the problem.

Example code:

struct ContentView: View {
    @State private var isRTL = false

    var body: some View {
        Toggle("RTL", isOn: $isRTL)

        List {
            ForEach(0...5, id: \.self) { index in
                Section(header: Text("Section \(index)")) {
                    Text("Row 0")
                    Text("Row 1")
                }
            }
        }
        .listStyle(.grouped)
        .environment(\.layoutDirection, isRTL ? .rightToLeft : .leftToRight)
        Spacer()
    }
}

\.layoutDirection is .leftToRight

\.layoutDirection is .rightToLeft

\.layoutDirection is .leftToRight

\.layoutDirection is .rightToLeft

Hi @rogowskimarksmapa, thanks for bringing that up, definitely unexpected! Please file a feedback report with those screenshots and code and post the number here!

Our App support Arabic language, while switching the language from English to Arabic, the language is changed but the layout orientation is mess. It will be helpful if the issue gets resolve as soon as possible.

Any updates at this issue please, I am facing the same problem and its totally blocked me

Any updates at this issue please, I also facing same problem

iOS 17 List with layoutDirection
 
 
Q