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
countryPicker
The 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
countryPicker
The controller object managing the country picker interface.
country
The country selected by the user.