ADCountryPicker
ADCountryPicker copied to clipboard
how to dismiss pickerNavigationController
I want to dismiss it when I select a specific country!!
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)
}
}