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.
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.
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.