Zoom navigation causes the source view to disappear

After returning from the child view to the parent, the latter one will simply disappear.

This is the full view. See itemsContent where I perform the navigation.

The last tapped rectangle in this example will simply disappear.

    struct DashboardView: View {
    @State var viewModel: DahsboardViewModel
    @Namespace private var namespace

    var body: some View {
        ScrollView(.vertical) {
            LazyVStack(spacing: 24) {
                ForEach(viewModel.sections) { section in
                    VStack(spacing: 16) {
                        Text(section.title)
                        itemsContent(for: section)
                    }
                }
            }
        }
    }
    
    func itemsContent(for section: DashboardSection) -> some View {
        ForEach(section.items) { item in
            NavigationLink {
                PatternLearningRouter().rootView
                    .id(item.id)
                    .navigationTransition(.zoom(sourceID: item.id, in: namespace))
            } label: {
                Rectangle()
                    .fill(Color.yellow)
                    .frame(width: 80, height: 80)
                    .overlay {
                        Text(item.title)
                    }
                    .matchedTransitionSource(id: item.id, in: namespace)
            }
        }
    }
}

XCode26 26.0.1(17A400) iPhone 16 Pro, iOS 26.0.1

Note:

  • Only reproduced when I swipe back (not reproducing it when using back button)
  • Only reproduced on real device not simulator

  • I
Zoom navigation causes the source view to disappear
 
 
Q