iOS 26 (beta 7) setting .searchFocused programmatically does not work

Already filed a feedback in case this is a bug, but posting here in case I'm doing something wrong?

I'd like the search field to automatically be displayed with the keyboard up when the view appears. This sample code works in iOS 18, but it does not work in iOS 26 beta 7

I also tried adding a delay to setting searchIsFocused = true but that did not help

struct ContentView: View {
    var body: some View {
        NavigationStack {
            NavigationLink(destination: ListView()) {
                Label("Go to list", systemImage: "list.bullet")
            }
        }
        .ignoresSafeArea()
    }
}

struct ListView: View {
    @State private var searchText: String = ""
    @State private var searchIsPresented: Bool = false
    @FocusState private var searchIsFocused: Bool
    
    var body: some View {
        ScrollView {
            Text("Test")
        }
        .searchable(text: $searchText, isPresented: $searchIsPresented, placement: .automatic, prompt: "Search")
        .searchFocused($searchIsFocused)
        .onAppear {
            searchIsFocused = true
        }
    }
}

Also tested and not fixed in beta 8, nor Xcode 26 beta 7

Tested again in iOS 26 and Xcode RC and this is still an issue

I also noticed that if the search bar is placed below the navigation bar, the keyboard will appear as expected, but obviously I'd want the new preferred default (bottom bar) placement to also display the keyboard

I also tried making a simple TextField in the bottomBar, and set its default focus, which did cause the keyboard to appear

So this issue appears to be constrained to only the situation where it's a real search bar, and it's placed in the bottomBar area.

iOS 26 (beta 7) setting .searchFocused programmatically does not work
 
 
Q