diff --git a/CountryPickerView/CountryPickerView.swift b/CountryPickerView/CountryPickerView.swift index ae38fb0..5a6801b 100644 --- a/CountryPickerView/CountryPickerView.swift +++ b/CountryPickerView/CountryPickerView.swift @@ -200,7 +200,7 @@ public class CountryPickerView: NibView { }() internal var usableCountries: [Country] { - let excluded = dataSource?.excludedCountriesInList(in: self) ?? [] + let excluded = dataSource?.excludedCountries(in: self) ?? [] return countries.filter { return !excluded.contains($0) } } } diff --git a/CountryPickerView/CountryPickerViewController.swift b/CountryPickerView/CountryPickerViewController.swift index 1d02692..10389d2 100644 --- a/CountryPickerView/CountryPickerViewController.swift +++ b/CountryPickerView/CountryPickerViewController.swift @@ -353,6 +353,6 @@ class CountryPickerViewDataSourceInternal: CountryPickerViewDataSource { } var excludedCountries: [Country] { - return view.dataSource?.excludedCountriesInList(in: view) ?? preferredCountries(in: view) + return view.dataSource?.excludedCountries(in: view) ?? excludedCountries(in: view) } }