Skip to content

Releases: kizitonwose/CountryPickerView

2.2.1

13 Jan 04:19
Compare
Choose a tag to compare
  • Add CPVCountry typealias which should be used if a project already has a Country class or struct to avoid conflicts.
  • Fix country search logic.
  • Add delegate methods for customizing cell label and section title label colors.
  • Make CountryPickerViewController public to ease customization.
  • Change the way xib files are packaged so the framework can be used as a static library.

2.2.0

20 Oct 15:48
Compare
Choose a tag to compare
  • Add CountryPickerViewDataSource methods for cell configuration:
    • func sectionTitleLabelFont(in countryPickerView: CountryPickerView) -> UIFont
    • func cellLabelFont(in countryPickerView: CountryPickerView) -> UIFont
    • func cellImageViewSize(in countryPickerView: CountryPickerView) -> CGSize
    • func cellImageViewCornerRadius(in countryPickerView: CountryPickerView) -> CGFloat
  • Set default corner radius value to 2.
  • Upgrade to Swift 4.2.

2.1.1

01 Jul 13:06
Compare
Choose a tag to compare
  • Fix an issue where the search bar goes off screen sometimes.
  • Add willShow and didShow methods to CountryPickerViewDelegate.

2.1.0

16 Feb 18:58
Compare
Choose a tag to compare
  • Added default protocol implementations for CountryPickerViewDataSource
  • The following CountryPickerViewDataSource methods no longer return optional values:
    • preferredCountries(in:)
    • showOnlyPreferredSection(in:)
    • showPhoneCodeInList(in:)

2.0.0

20 Dec 09:19
Compare
Choose a tag to compare

Upgrade to swift 4.0

1.0.0

14 Dec 17:44
Compare
Choose a tag to compare

Initial release.