iPhoneNumberField
iPhoneNumberField copied to clipboard
Long phone number causes iPhoneNumberField to extend off screen
When I enter a really long phone number into the iPhoneNumberField, it causes the field to extend off the screen:

I looked into this issue, and there's an easy fix (src):
public func makeUIView(context: UIViewRepresentableContext<Self>) -> PhoneNumberTextField {
let uiView = UIViewType()
// Add the line below
uiView.setContentCompressionResistancePriority(.defaultLow, for: .horizontal)
...
}
Now the field behaves like it's supposed to (you can see the 9 on the left side is now partially cut off since the field's contents are now scrolling horizontally):

Could someone implement this bug fix? I'd be happy to do it myself if I'm given permission to contribute.