yes it works with List, however even without ScrollView the message still shows, but it works on iPhone.
On Mac Catalyst, if I include StackNavigationViewStyle it shows the "error" but it works,
whereas without it it doesn't work at all. I'm now on macos 11.4 beta2, target ios 14.5, testing on ios 14.6 iPhone.
struct ContentView: View {
var body: some View {
NavigationView {
VStack {
NavigationLink(destination: Text("view 1")) {
VStack{
Text("to view 1").padding(5)
}
}
NavigationLink(destination: Text("view 2")) {
VStack{
Text("to view 2").padding(5)
}
}
NavigationLink(destination: Text("view 3")) {
VStack{
Text("to view 3").padding(5)
}
}
}
}.navigationViewStyle(StackNavigationViewStyle()) //
}
}