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.

Tried again using the public release of Xcode and iOS, and the issue is still present

Thanks. we have received your bug. Always a good idea to upgrade to the release version.

You can see the status of your feedback in Feedback Assistant. There, you can track if the report is still being investigated, has a potential identifiable fix, or has been resolved in another way. The status appears beside the label "Resolution." We're unable to share any updates on specific reports on the forums.

For more details on when you'll see updates to your report, please see What to expect after submission.

Albert Pascual
  Worldwide Developer Relations.

I’m also experiencing this. The .searchable field seems to receive focus, but it does not activate, and the keyboard does not appear.

FB20068224

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