searchController(_:didChangeFrom:)
Notifies the delegate after the search bar placement changes.
Declaration
optional func searchController(_ searchController: UISearchController, didChangeFrom previousPlacement: UINavigationItem.SearchBarPlacement)Parameters
- searchController:
The search controller associated with the search bar.
- previousPlacement:
The previous search bar placement.
Discussion
The system calls this method after a search bar placement change occurs. Implement this method if you need to make any custom changes to your search suggestions UI according to the previous search bar placement.
The system calls this method after searchController(_:willChangeTo:).