Has anyone else come across this incorrect behavior?
- Create an app with the following code:
import SwiftUI
struct ContentView: View {
var body: some View {
NavigationView {
List {
ForEach (0..<100, id:\.self) { index in
Text("Hello, \(index)!")
.padding()
}
}
.navigationBarTitle("Test", displayMode: .inline)
}
}
}
Scroll the list to some item that is not initially visible.
Tap on the navaigationBar Title
Result: List scrolls to top.
- Try the same thing with the iPhone in landscape mode.
Result: List does not scroll to top
I have filed feedback #FB9035540 on this. Just wondering if anyone else has experienced this and how they worked around it?