I have a SwiftUI view in a watch companion app, and when I build my app with Xcode 26.2 or 26.3, the navigation title on a presented screen disappears after the watch screen goes dark.
So, the navigation title is only visible when the screen is first presented and not again after the watch screen goes dark, for example when the user lowers their arm. Please see the screenshots for a better understanding. Notice that the "Bench Press" text is not visible in the third image.
Also, I’ve confirmed that this does not happen when the app is built with Xcode 16.4.
First Image (initial presentation of the screen):
Second Image (watch screen goes dark):
Third Image (watch screen goes back on, title missing):
Although I've confirmed that this is related to Xcode versioning, and it happens on multiple screens, here is the redacted version of this SwiftUI view that is shown in the screenshots, in case it helps:
var body: some View {
NavigationStack(path: $viewModel.pushedViews) {
TabView(selection: $selectedTab) {
...
ZStack {
List {
ForEach(Array(viewModel.setModels.enumerated()), id: \.element) { index, setModel in
VStack(spacing: 8.0) {
SetContentView()
}
}
...
}
.listStyle(.plain)
.buttonStyle(.plain)
VStack {
WatchRestTimerView(viewModel: viewModel.restTimerViewModel)
Spacer()
}
}
.tag(WatchExerciseLoggingTab.logExercise)
// HERE IS THE TITLE SET
.navigationTitle(viewModel.name)
NowPlayingView().tag(WatchExerciseLoggingTab.nowPlaying)
}
.tabViewStyle(PageTabViewStyle())
.navigationDestination(for: WatchWeightAndSetExerciseSummaryPushedView.self, destination: { _ in
RedactedView()
})
}
}
This prevents me from migrating to Xcode 26, I would also appreciate if anyone has a work around until there is a fix for this, I mean I can stop using navigation title and add a Text at the top but it is not quite the same UI experience we get from the navigation title in a watch app.