MojtabaHs / iPhoneNumberField

Elegant SwiftUI phone number textField.
MIT License
528 stars 87 forks source link

Programmatically change defaultRegion? #74

Closed GianlucaAntolini closed 1 year ago

GianlucaAntolini commented 1 year ago

Maybe I am wrong but I use an iPhoneNumberField with the .defaultRegion modifier. The parameter I pass to the modifier is a state variable (countryCode) that changes throughout the code (I have a custom country picker) but when I type the phone number it seems like it always formats it with the first one? What can I do to it so it changes the default region each time the countryCode variable changes?

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale.