1,267 questions
0
votes
0
answers
37
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
103
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 ...
2
votes
0
answers
27
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 ...
0
votes
1
answer
69
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 ...
0
votes
1
answer
98
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
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 = [...
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 ...
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:
0
votes
1
answer
193
views
Swift: deallocate modally presented view controller
I have a modally presented SearchviewController that contains a UISearchController.
When swiping down it gets deallocated, but only if the searchControllers searchBar is not in editing mode. Only if I ...
2
votes
1
answer
1k
views
How to set left and right paddings for UISearchController searchBar?
I'm using system searchBar via UISearchController in my Swift app. What is the correct way to set left and right padding to searchTextField? I need paddings for searchTextField itself, not just for ...
-1
votes
1
answer
267
views
How to fix jump when click on search bar?
There is a phenomenon that jumps when you click the search bar.
The view is below.
https://i.sstatic.net/jFkgS.gif
my code.
lazy var searchController: UISearchController = {
let searchController = ...
0
votes
1
answer
70
views
UITableView not reloading data when SearchBar is Canceled
I have a SearchBar on my tableView. It is correctly working when typing to search through the table view. However, when the cancel button is pressed, the tableView is not reloading the data.
-(void)...
1
vote
1
answer
173
views
Tableview y origin not animating properly when navigationItem.titleView is hidden (Swift 5)
I’m trying to get the tableView to move up when the search bar does. Take a look at the problem:
I think I see what the issue is here, but I can't think of a solution. In SearchResultsUpdating I have ...
1
vote
1
answer
201
views
Why will UITableViewController navigationItem.searchController not set in iOS?
For some reason, when I set UITableViewController navigationItem.searchController with a UISearchController, it doesn't take it.
Here is my code:
let searchController = UISearchController(...
0
votes
0
answers
113
views
Swift table view and search controller didSelectRowAt index out of range
In Swift, I'm using SearchController and TableView with search API below.
https://developers.giphy.com/docs/api/endpoint#search
api.giphy.com/v1/gifs/search
When I input to SearchController field, ...
-1
votes
1
answer
100
views
UISearchController setActive does nothing
I'm trying to present a search controller in response to a button, by setting its isActive property, but it doesn't appear.
lazy var searchController: UISeachController = {
let searchController = ...
0
votes
1
answer
386
views
UISearchBar in UITableView header layout issue in iOS 14
I am using the new UISearchController with searchbar inside tableview header.Everything works fine in portrait orientation but when I rotate to landscape and uisearchbar start editing its frame is out ...
0
votes
2
answers
284
views
UITableView cells overlap search bar view set as searchController for NavigationBar
I have a UISearchController configured as searchController for navigation bar. I have following setup.
let searchController = UISearchController(searchResultsController: nil)
searchController....
0
votes
1
answer
29
views
How to display sub response when search Tableview?
I can show skill(List)(only vName) as rows and CategorySkill show as section in tableview.
but the issue is I want to filter only VName when search using searchcontroller? and I don't know what to ...
0
votes
2
answers
441
views
How do I filter data to startswith instead of contains
I have a UITableView that has a Search Controller for filtering the data using the code below
func updateSearchResults(for searchController: UISearchController) {
let searchString = ...
4
votes
0
answers
1k
views
How to keep showing a bookmark button when text is entered?
I'm currently struggling with UISearchController in Swift.
I'd like to keep showing a bookmark button when text is entered into a textField.
I need to take the text via a bookmark button (or any other ...
0
votes
1
answer
197
views
UISearchController change color
I use this code to change my navigation bar appearance which I put it in AppDelegate:
UINavigationBar.appearance().barTintColor = UIColor(hex: "E1354A")
UINavigationBar.appearance()....
0
votes
0
answers
25
views
SearchController filtering problem in TableView
I've next model:
struct HashTags {
var title = ""
var tags = [String]()
}
and I try use UISearchController for seach text in tags array.
I impelemented UISearchController in my ...
0
votes
1
answer
463
views
algolia filter works in console but is not working in actual search results
So my goal is to be able to filter out the Algolia hits not only in the console, but in the actual displayed results as well. So I've been stuck with this issue for a month or so now. I am using the ...
0
votes
1
answer
364
views
Swift - How to filter through multiple keywords using UISearchController
I have a UISearchController that when a user enters text, it searches through the objects. However the user can only search for a single keyword, I want them to search through multiple keywords.
Model:...