Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the keyword 'public' to lines 4,5, and 6 (chronotruck#93)
When using an instance of FPNTextField() eg. let phoneNumberTextField = FPNTextField(), you may want to save the code, name, and phoneCode to the db for future reference. In addition to having the user's phone number, declaring these as public gives you easy access to them once a selection is made inside the phoneNumberTextField eg phoneNumberTextField.set(phoneNumber: 1-212-555-1212) let countryName = phoneNumberTextField.selectedCountry?.name // save the name of the user's country code US let countryCode = phoneNumberTextField.selectedCountry?.code.rawValue // save the name of the user's country United States let phoneDialCode = phoneNumberTextField.selectedCountry?.phoneCode // save the prefix code +1
- Loading branch information