Can't get UITextField to populate when using .currency format of NumberFormatter()
问题 I borrowed and modified some code from SO to solve a problem where I was trying to format text that I inputted into my UITextField s. If I use the .decimal numberStyle of NumberFormatter it works (adds a comma where I need it) but if I use .currency I can't type anything once I run the app. The UITextField will not populate. I've tried playing around with the locale and that doesn't seem to solve anything. All I want to do is to show the user the "$" sign in front of the number they type as