You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for making this clean example of adding a searchbar. I've been looking but unable to find a way to show the SearchBar by default without having to pull down on the view. Is there a simple way to change this?
Thanks
ViewControllerResolver{ viewController in
viewController.navigationItem.searchController =self.searchBar.searchController
viewController.navigationController?.navigationBar.sizeToFit() // This line rocks
}
Activity
aksonov commentedon Dec 23, 2020
I'm interested too
FUNKYJASPER2 commentedon Mar 10, 2021
is there any update on a solution?
Geri-Borbas commentedon Mar 12, 2021
Please take a look at these other branches below as well, as in some cases there is a search bar visible when the view opens.
Prototype/UI/UIKit_Navigation_StackPrototype/UI/UIKit_NavigationPrototype/UI/SwiftUI_Navigationscrooge1987 commentedon Mar 9, 2023
@skunkworker @aksonov @FUNKYJASPER2 Hi, guys👋. If the question is still relevant, for (iOS 13.0, *) and SwiftUI add the following:
Original StackOverflow answer: https://stackoverflow.com/a/67721006