.searchable bug with new navigationTransitions

When using the new .navigationTransition feature, when using .searchable at the same time result in the search bar disappearing when dismissing the view you've trasition to, has anyone else experienced this or found any workarounds? Here is an example that make the issue always occur.

    @State private var searchText: String = ""
    @Namespace private var namespace
    let things: [String] = ["one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve", "thirdteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen", "twenty"]

    var body: some View {
        NavigationStack {
            ScrollView {
                LazyVStack(spacing: 20) {
                    ForEach(things, id: \.self) { thing in
                        NavigationLink(){
                            SwiftUIView(thing: thing, name: namespace)
                        }label: {
                            Text(thing)
                        }
                        .matchedTransitionSource(id: thing, in: namespace)
                    }
                }
            }
            .searchable(text: $searchText)
            .navigationTitle("My List")
            .navigationBarTitleDisplayMode(.inline)
        }

    }
}

struct SwiftUIView: View {
    
    var thing: String
    var name: Namespace.ID
    
    var body: some View {
        Text(thing)
            .navigationTransition(.zoom(sourceID: thing, in: name))
    }
}

After running the code you end up with this:

And after clicking an element and dismissing it your get this:

Thanks for flagging this. I tested on iOS 18.0 & iOS 18.1 Beta 5 using Xcode 16.1 beta 2 and I was unable to reproduce the issue.

Could you verify on the latest beta build if you're able to reproduce the issue and report your findings.

Thanks

It happens less on Xcode 16.1 beta 2 for dismissing by pressing the back button, but still happens every time when you dismiss the destination view by pulling down on it.

.searchable bug with new navigationTransitions
 
 
Q