willDismissSearchController(_:)
Notifies the delegate that the system is about to automatically dismiss the search controller.
Declaration
optional func willDismissSearchController(_ searchController: UISearchController)Parameters
- searchController:
The Uisearchcontroller object to dismiss.
Discussion
The system only calls this method when it’s about to automatically dismiss the search controller. The system doesn’t call this method if you explicitly dismiss the search controller.