UIViewControllerPreviewingDelegate methods that are not called when the UISearchController is presented

When the searchController is not present, 3d touch works as expected, and delegation methods are called. But it is not called when searchController is active.

Creating a UISearchController is as follows

let searchController = UISearchController(searchResultsController: nil) searchController.searchResultsUpdater = self searchController.delegate = self searchController.hidesNavigationBarDuringPresentation = false searchController.dimsBackgroundDuringPresentation = false 
+7
ios swift 3dtouch uisearchcontroller
source share

No one has answered this question yet.

See related questions:

1665
How can I make UITextField move up when there is a keyboard - when editing starts?
52
The UISearchBar represented by the UISearchController in the table header view is too tight when active
49
iOS 9 searchBar disappears from table header view when UISearchController is active
5
Swift - UISearchController with separate search
4
Is iOS UISearchController active?
4
UISearchController with nil searchResultsController
4
UISearchController searchResultsController disappears when the text in the search bar is empty
2
Subclass of UISearchController and UISearchBar
2
iOS - UISearchController inside UITableView inside UIAlertController - search bar in the wrong place when user starts typing
0
Detecting when a UISearchController appears in a navigation item in iOS 11

All Articles