UISearchController
suggest changeSyntax
- UISearchController(searchResultsController: UIViewController?) // Pass nil as the parameter if the search updating controller also displays the searchable content.
- func updateSearchResults(for searchController: UISearchController) // Required method to implement when adopting the UISearchResultsUpdating protocol
Parameters
Parameter | Details —–– | ——— UISearchController.searchBar
| The search bar to install in your interface. (read-only) UISearchController.searchResultsUpdater
| The object responsible for updating the contents of the search results controller. UISearchController.isActive
| The presented state of the search interface. UISearchController.obscuresBackgroundDuringPresentation
| A Boolean indicating whether the underlying content is obscured during a search. UISearchController.dimsBackgroundDuringPresentation
| A Boolean indicating whether the underlying content is dimmed during a search. UISearchController.hidesNavigationBarDuringPresentation
| A Boolean indicating whether the navigation bar should be hidden when searching. UIViewController.definesPresentationContext
| A Boolean value that indicates whether this view controller’s view is covered when the view controller or one of its descendants presents a view controller. UIViewController.navigationItem.titleView
| A custom view displayed in the center of the navigation bar when the receiver is the top item in which a search bar can be placed. UITableViewController.tableView.tableHeaderView
| Returns an accessory view that is displayed above the table in which a search bar can be placed.
Remarks
UIKit Framework Reference: