After installing Xcode 27.0 SwiftUI NavigationStack is generating unwanted warnings that have not been seen with older releases. Examples of the warnings are "cannot add handler to 0 from 0 - dropping". A minimal view using VStack does not generate these messages but adding NavigationStack seems to generate pairs of messages. Over the lifetime of an application hundreds of messages are generated. Is this a known issue?
SwiftUI NavigationStack warning messages
Also seeing this.
Same here. Does not break anything but anoying.
I haven't seen this, any code you can provide to reproduce that warning? Xcode 27.2?
That'll help us better understand what's going on.
If you're not familiar with preparing a test project, take a look at
Creating a test project.
Albert WWDR
Here you go - running on an iPad running iPadOS 27.2 from Xcode 27.2 under MacOS 27.2.1:
import SwiftUI
struct MasterView1: View {
var body: some View {
NavigationStack {
Text("Synchronizing backups - wait......")
.font(.headline)
.foregroundColor(.red)
.padding()
.background(RoundedRectangle(cornerRadius: 4).stroke())
}
}
}