All Views double loading in List/NavigationLink on iOS14, MAJOR BUG

Why is the following code causing views to load twice on iOS 14? This does not happen on iOS 13.6.

The same code compiled on either Xcode 12 Beta 3 or Xcode 11.6 runs differently on iOS 14.

iOS 14 is causing all Views to load twice when placed in a List with NavigationLink.

This issue is doubling our network traffic.

The following code example will demonstrate:


Code Block
import SwiftUI
struct ContentView: View {
var body: some View {
NavigationView {
List(){
NavigationLink( destination: DetailView()){
Text("DetailView")
}
}
}
}
}
struct DetailView: View {
var body: some View {
VStack {
logView("View loaded")
Text("Hello, world!")
}
}
func logView( _ message: String) -> AnyView {
print("\(message)")
return AnyView(EmptyView())
}
}

I’m seeing the same issue, still present on beta 4.
I don't know if this is any help, but I had a similar issue with double log messages and my List highlighting the wrong rows.

It worked fine on-device and it turned out it was a simulator issue. I deleted the simulator I was using and re-created it, worked fine ever since.

I don't know if this is the same issue you are having, it would be worth running it up on device to see if you have the same issue.

I'm seeing this same issue (List in NavigationView) with iOS 13.6 devices as well
Same problem here. Any ideas why this is going on?
All Views double loading in List/NavigationLink on iOS14, MAJOR BUG
 
 
Q