mirror of
https://github.com/wahyd4/Yep.git
synced 2026-08-11 05:45:56 +10:00
better logic for dismiss searchController
This commit is contained in:
@@ -165,11 +165,7 @@ extension ContactsViewController: UITableViewDataSource, UITableViewDelegate {
|
||||
|
||||
if let friend = friendAtIndexPath(indexPath) {
|
||||
|
||||
if searchControllerIsActive {
|
||||
dismissViewControllerAnimated(true) { [weak self] in
|
||||
self?.searchController?.searchBar.text = ""
|
||||
}
|
||||
}
|
||||
searchController?.active = false
|
||||
|
||||
performSegueWithIdentifier("showProfile", sender: friend)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user