Home > Back-end >  how does not hide the search bar when scrolling ? SwiftUi
how does not hide the search bar when scrolling ? SwiftUi

Time:12-02

IOS 15 added .searchable(text: $searchtext)

when I open my application, the search is hidden by default and only appears when scrolling the page, how can I open the application to immediately display the search?

SWIFTUI IOS 15

CodePudding user response:

Maybe it's help

.searchable(text: $queryString, placement: .navigationBarDrawer(displayMode: .always)) {
    "your code"
}
  • Related