FlagPhoneNumber icon indicating copy to clipboard operation
FlagPhoneNumber copied to clipboard

UiTextfield border Style selected as none then there is no spacing between phone code and input phone number

Open JobLess-Engineer opened this issue 5 years ago • 4 comments

Describe the bug UiTextfield border Style selected as none then there is no spacing between phone code and input phone number.

To Reproduce Steps to reproduce the behavior:

  1. Go to Xcode Project and put UITextField on storyboard and set up border style none in IB or textfieldName.borderStyle = .none.
  2. Add the FPN pods and run project.
  3. see the error.

Expected behavior It would be nice if there is space between phone code and phone number. The issue arrises only when border style = none is selected.

Screenshots Screenshot 2019-09-27 at 1 19 43 PM

Smartphone (please complete the following information):

  • Device: [Iphone 11 pro max]
  • OS: [e.g. iOS 13]
  • Version [e.g. 0.7.7]

FlagPhoneNumber (please complete the following information):

  • Version [e.g. 0.7.7]

JobLess-Engineer avatar Sep 27 '19 07:09 JobLess-Engineer

Hey I had the same issue.. did this to fix it temp:

        textField.leftView?.translatesAutoresizingMaskIntoConstraints = false
        textField.leftView?.widthAnchor.constraint(equalToConstant: 110.0).isActive = true

apparently in iOS13 right/left views dimensions needs to be set via constraints.

dustfire avatar Oct 01 '19 03:10 dustfire

Nope that didn't work for me @dustfire. Screenshot 2019-10-03 at 4 49 07 PM

Temporarily fixed it by setting border style to line and then hiding the borders using UIViews.

JobLess-Engineer avatar Oct 03 '19 11:10 JobLess-Engineer

I am also facing the same issue.. can any one fix it?

Ganeshya17 avatar Jan 29 '20 13:01 Ganeshya17

same

summonerriftofficial avatar Oct 06 '20 13:10 summonerriftofficial