Skip to content

Commit

Permalink
Release 3.1.2
Browse files Browse the repository at this point in the history
Release 3.1.2
  • Loading branch information
kizitonwose authored Apr 18, 2020
2 parents 8ad8fdf + f3b224f commit 2f6fd4c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CountryPickerView.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |spec|

spec.name = "CountryPickerView"
spec.version = "3.1.1"
spec.version = "3.1.2"
spec.summary = "A simple, customizable view for selecting countries in iOS apps."
spec.homepage = "https://github.com/kizitonwose/CountryPickerView"
spec.license = "MIT"
Expand Down
3 changes: 2 additions & 1 deletion CountryPickerView/CountryPickerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ public class CountryPickerView: NibView {
}
set {
_selectedCountry = newValue
delegate?.countryPickerView(self, didSelectCountry: newValue)
setup()
}
}
Expand Down Expand Up @@ -202,7 +203,7 @@ public class CountryPickerView: NibView {
//MARK: Helper methods
extension CountryPickerView {
public func setCountryByName(_ name: String) {
if let country = countries.first(where: { $0.name == name }){
if let country = countries.first(where: { $0.name == name }) {
selectedCountry = country
}
}
Expand Down
1 change: 0 additions & 1 deletion CountryPickerView/CountryPickerViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ extension CountryPickerViewController {

let completion = {
self.countryPickerView.selectedCountry = country
self.countryPickerView.delegate?.countryPickerView(self.countryPickerView, didSelectCountry: country)
}
// If this is root, dismiss, else pop
if navigationController?.viewControllers.count == 1 {
Expand Down

0 comments on commit 2f6fd4c

Please sign in to comment.