chronotruck / FlagPhoneNumber

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

Placeholder and editing text to close to code. #160

Open Ku6ep opened 4 years ago

Ku6ep commented 4 years ago

Placeholder of phone and editing text very close to code string.

Make some offset between the end of code and start of placeholder/editing text

Version 0.8.0

Screenshot 2020-05-25 at 15 28 19 Screenshot 2020-05-25 at 15 28 27
Faari7 commented 4 years ago

@grifas I am also facing the same issue, although it's working perfectly fine in the older version of OS for iOS 13 this spacing issue is coming along. Could you please fix that.

Screenshot 2020-06-05 at 2 50 42 PM Screenshot 2020-06-05 at 2 50 50 PM

First one belongs to older Version the bottom one is taken in iOS 13

Ku6ep commented 4 years ago

Fix and add pull request #165

nyeu commented 4 years ago

I'm having this issue and honestly with the PR #165 it crashes.

Frakcool commented 3 years ago

Is there any update on this fix? PR #165 is also crashing for me

Thread 1: EXC_BAD_ACCESS (code=1, address=0x64)

And you get this error:

Thread 1: Fatal error: unexpected enum case 'FPNFormat(rawValue: 105553118461744)'

if you setCountries:

phoneNumberTextField.setCountries(including: [.MX])
mobilestar0223 commented 3 years ago

I have forked and fixed this issue myself.

pod 'FlagPhoneNumber', :git => 'https://github.com/mobilestar0223/FlagPhoneNumber.git'

And you can set value to phoneCodeRightPadding property.

mauromarques commented 3 years ago

same problem here