searchable issue on iOS 18

Starting with iOS 18, the behavior of searchable and searchSuggestions differs from previous versions.

In iOS 17.5, searchSuggestions remained visible even after selecting an item and navigating away. However, in iOS 18, searchSuggestions are dismissed after navigation.

Is there a way to keep searchSuggestions visible after navigation, as in iOS 17.5?

struct ContentView: View {
    @State private var query = ""

    var body: some View {
        NavigationStack {
            Color.red
                .searchable(text: $query)
                .searchSuggestions {
                    NavigationLink("Element") {
                        Color.blue
                    }
                }
        }
    }
}

iOS 18.1

iOS 17.5

searchable issue on iOS 18
 
 
Q