Same issue here, trying to implement Cmd+F keyboard shortcut for starting the search on a macOS app.
@colalo For iPadOS or Catalyst there seems to be an workaround based on SwiftUI-Introspect, see this answer on SO:
https://stackoverflow.com/a/69308041/3451975
But for macOS, there's currently no solution. It would be great if the @Environment(\.isSearching) would be settable, then I could write a hidden button like this:
Button("Search") { isSearching = true }.keyboardShortcut("F").hidden()
Alternatively, the searchable() modifier could return a specific type (not some View) that supports keyboardShortcut, then the code would look something like this:
myView.searchable(text: $searchText).keyboardShortcut("F")
Post
Replies
Boosts
Views
Activity
I'm having the same issue even on Beta 5 now ... neither working on simulator, nor on iPad Pro 11" (2019).
Same issue here still with Beta 5 ... also not working on my actual iPad Pro 11".
I forgot to add the "wwdc20-10670" tag and can't edit anymore, I misunderstood the UI (expected it will be added automatically as I had filtered by that tag). Could someone remove "Touch ID" in favor of that tag? Or isn't editing even possible ...