From 41c6660a9f01459a9ca731adcdb236151166ec01 Mon Sep 17 00:00:00 2001 From: Maksym Yakovlev Date: Tue, 5 Sep 2017 16:48:06 +0300 Subject: [PATCH] Removes the necessity to tap on "Done" button twice when the search mode is active. --- Pods/EPContactsPicker.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Pods/EPContactsPicker.swift b/Pods/EPContactsPicker.swift index d4d333b..9ff1160 100644 --- a/Pods/EPContactsPicker.swift +++ b/Pods/EPContactsPicker.swift @@ -333,6 +333,9 @@ open class EPContactsPicker: UITableViewController, UISearchResultsUpdating, UIS } func onTouchDoneButton() { + if resultSearchController.isActive { + resultSearchController.dismiss(animated: false, completion: nil) + } dismiss(animated: true, completion: { self.contactDelegate?.epContactPicker(self, didSelectMultipleContacts: self.selectedContacts) })