GCCountryPickerDelegate
public protocol GCCountryPickerDelegate
The delegate of a GCCountryPickerViewController object must adopt the GCCountryPickerDelegate protocol.
-
Tells the delegate that the user cancelled the pick operation.
Your delegate’s implementation of this method should dismiss the country picker.
Declaration
Swift
func countryPickerDidCancel(_ countryPicker: GCCountryPickerViewController)Parameters
countryPickerThe controller object managing the country picker interface.
-
Tells the delegate that the user picked a country.
Your delegate’s implementation of this method should pass the country on to any custom code that needs it, and then it should dismiss the picker view.
Declaration
Swift
func countryPicker(_ countryPicker: GCCountryPickerViewController, didSelectCountry country: GCCountry)Parameters
countryPickerThe controller object managing the country picker interface.
countryThe country selected by the user.
View on GitHub
GCCountryPickerDelegate Protocol Reference