ADCountryPicker icon indicating copy to clipboard operation
ADCountryPicker copied to clipboard

how to dismiss pickerNavigationController

Open BurierAbdalwahhabElia opened this issue 5 years ago • 1 comments

I want to dismiss it when I select a specific country!!

BurierAbdalwahhabElia avatar Aug 04 '19 20:08 BurierAbdalwahhabElia

use pickerNavigationController?.dismiss(animated: true, completion: nil) inside func countryPicker(_ picker: ADCountryPicker, didSelectCountryWithName name: String, code: String, dialCode: String) {

for example

extension viewController: ADCountryPickerDelegate {
    func countryPicker(_ picker: ADCountryPicker, didSelectCountryWithName name: String, code: String, dialCode: String) {
        pickerNavigationController?.dismiss(animated: true, completion: nil)
    }
}

gelarr avatar Jul 23 '20 04:07 gelarr