Skip to content

Commit

Permalink
Merge pull request #29 from JNDisrupter/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
jayelzaghmoutt authored Feb 3, 2021
2 parents 34fccc9 + edc49da commit c8e1579
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion JNPhoneNumberView.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Pod::Spec.new do |s|
s.name = "JNPhoneNumberView"
s.version = "1.0.14"
s.version = "1.0.15"
s.summary = "Phone Number Validation with country dial code picker"
s.description = "A view to show the country dial code and the phone number, you can click on the dial code and select another country from the countries picker, this view has a delegate methods to pass the international number and validity of it."
s.homepage = "https://github.com/JNDisrupter"
Expand Down
4 changes: 3 additions & 1 deletion JNPhoneNumberView/Classes/JNPhoneNumberView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ public class JNPhoneNumberView: UIView, UITextFieldDelegate {
}

// Set selected country
self.selectedCountry = JNCountryUtil.generateDialCode(for: defaultCountryCode)
if let country = JNCountryUtil.generateDialCode(for: defaultCountryCode) {
self.selectedCountry = country
}

// Setup country code button
self.setupCountyLabels()
Expand Down

0 comments on commit c8e1579

Please sign in to comment.