1,267 questions
0 votes
0 answers
40 views
Custom UISearchController transition
I have an app which has a search bar that appears in the navigation bar and my set up is a hybrid of SwiftUI and UIKit. I don't think this has bearing on the question at hand but here is my set up: I ...
0 votes
0 answers
41 views
Presenting search controller from bar button hides elements in screen
I have an app which has a search bar that appears in the navigation bar and my set up is a hybrid of SwiftUI and UIKit. I don't think this has bearing on the question at hand but here is my set up: I ...
0 votes
0 answers
104 views
Large Title collapsing at launch when UITableView not empty
I have a UITableViewController with a UINavigationBar with the property : navigationBar.prefersLargeTitles = true navigationItem.largeTitleDisplayMode = .automatic I add in the UITableViewController ...
0 votes
1 answer
56 views
Centre Search Controller in Navigation Bar
I want to add a search bar in the middle of the navigation bar like so : I was able to achieve the above screen with the following code : navigationItem.titleView = searchController.searchBar ...
2 votes
0 answers
33 views
UISearchBar that behaves as a UISearchController using storyboard
There's a page I'm designing that uses a search bar that's intended to work as a UISearchController. The search bar is positioned in the center of a view. When a user taps the search bar, I want the ...
1 vote
1 answer
84 views
How to always show searchBar when viewController is loaded in swift?
I am trying to show searchBar always visible that is in the navigation bar. Below UISearchController there are tableView/collectionView with mutliple cells. Now searchBar is not shown always, rather ...
0 votes
1 answer
70 views
UISearchBar always appears with gray tint when placed in navigation bar via a search bar controller
I have been search for over two days now and simply could't find an answer. Hope anyone out there can help? In short, the project I am working on holds a searchbar in its navigationbar. This ...
1 vote
1 answer
217 views
UISearchController in navigation controller not working properly on compact iOS devices
image 1 this is the initial estimated behaviour. image 2 after searchbar became active this is the behaviour. image 3 once after changing the orientation to landscape, keyboard dismissed along with ...
0 votes
1 answer
99 views
Difference between UISearchController.searchResultsController?.view.isHidden and UISearchController.showsSearchResultsController
I'm currently working with UISearchController and I've found out some awkward behavior of UISearchController. Previously I didn't know there was the showsSearchResultsController property which helps ...
0 votes
1 answer
147 views
In-note text search - Is this a standard UIKit component or custom view?
Currently, I have a note taking app with global text search feature. It is using standard UISearchController and able to provide the following UI outcome. However, I would also like to provide a in-...
0 votes
1 answer
90 views
Extra space between search bar and search view controller
Implementation for search functionality using custom search view controller : final class MoviesViewController: UITableViewController, UISearchResultsUpdating { var movies = [...
0 votes
0 answers
71 views
Activating a search controller whose navigation item is not at the top of the stack | Swift
The error: [Assert] Surprise! Activating a search controller whose navigation item is not at the top of the stack. This case needs examination in UIKit. items = (null), search hosting item = <...
1 vote
0 answers
498 views
tvOS search: grid keyboard will not slide when search results are focused
I am working on a tvOS application with a UISearchController. I have a problem when the grid keyboard is selected in the settings (Settings->General->Keyboard Layout). Expected behavior When the ...
-1 votes
1 answer
92 views
How do you hide a SearchController or make it smaller?
I have a SearchController with a search bar that is currently hidden. I do not need the user to be able to type in it. As you can see, there is a blank space where the searchBar would be: Is there a ...
6 votes
1 answer
1k views
How to return UISearchController under a title on an iPad with iOS 16?
On iPad with iOS 16 searchController displaying on the right side. Like this: How can I return the searchController's "default" view? Like this: