chronotruck / FlagPhoneNumber

A formatted phone number UITextField with country flag picker.
Apache License 2.0
437 stars 317 forks source link

0.7.8 to 0.8.0 setValue Crashing #140

Open luai-kalkatawi opened 4 years ago

luai-kalkatawi commented 4 years ago

After upgrading from 0.7.8 to 0.8.0 set values is crashing

Example:

let phoneNumberTextField = FPNTextField(frame: CGRect(x: 0, y: 0, width: view.bounds.width - 16, height: 50)) // You can change the chosen flag then set the phone number phoneNumberTextField.setFlag(key: FPNOBJCCountryKey.FR) //Crash phoneNumberTextField.set(phoneNumber: "0600000001") //Crash