marmelroy / PhoneNumberKit

A Swift framework for parsing, formatting and validating international phone numbers. Inspired by Google's libphonenumber.
MIT License
5.16k stars 824 forks source link

Clear button not working. #742

Closed timmybea closed 7 months ago

timmybea commented 10 months ago

New Issue Checklist

Steps to reproduce

Implemented a very basic UIViewRepresentable wrapper over PhoneNumberTextField. Configured with clearButtonMode = .whileEditing, and set UITextFieldDelegate to my coordinator.

Expected result

I expect to see all of the UITextFieldDelegate methods getting called. All the methods appear to work except for textFieldShouldClear. I set a break point in PhoneNumberTextField to see if this delegate method is getting called and I see it is not getting triggered in that code either.

Environment

SPM integration in iOS project.

github-actions[bot] commented 8 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.