I added .searchable and it is working fine. But I want to show another view while the search is still focused and on the navigation bar.
If I use
@Environment(\.dismissSearch) private var dismissSearch
It will completely dismiss the search and clean the search text. I don't want that to happen.
By clicking Search button on keyboard, it will dismiss the keyboard. But I want to do it programmatically.
so any workaround to dismiss the keyboard while search bar is still focused? Thanks.
