FlagPhoneNumber
FlagPhoneNumber copied to clipboard
UiTextfield border Style selected as none then there is no spacing between phone code and input phone number
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:
- Go to Xcode Project and put UITextField on storyboard and set up border style none in IB or textfieldName.borderStyle = .none.
- Add the FPN pods and run project.
- 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
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]
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.
Nope that didn't work for me @dustfire.
Temporarily fixed it by setting border style to line and then hiding the borders using UIViews.
I am also facing the same issue.. can any one fix it?
same