From 2a3c88f9ea08770ef86e6a9617612de1fcc922c5 Mon Sep 17 00:00:00 2001 From: Kizito Nwose Date: Sat, 12 Jan 2019 21:59:35 +0100 Subject: [PATCH] Fix typo in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6363ab1..e8c6540 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,7 @@ class DemoViewController: UIViewController, CountryPickerViewDelegate, CountryPi func countryPickerView(_ countryPickerView: CountryPickerView, didShow viewController: CountryPickerViewController) ``` -**Note: If you already have a `Country` class or struct in your project then implementing the `didSelectCountry` delegate method can cause a compile error with a message saying that your conforming class does not comform to the `CountryPickerViewDelegate` protocol. This is because Xcode can't figure out which Country model to use in the method. The solution is to replace the `Country` in the method signature with the typealais `CPVCountry`, your delegate method should now look like this:** +**Note: If you already have a `Country` class or struct in your project then implementing the `didSelectCountry` delegate method can cause a compile error with a message saying that your conforming class does not comform to the `CountryPickerViewDelegate` protocol. This is because Xcode can't figure out which Country model to use in the method. The solution is to replace the `Country` in the method signature with the typealias `CPVCountry`, your delegate method should now look like this:** ```swift func countryPickerView(_ countryPickerView: CountryPickerView, didSelectCountry country: CPVCountry)