How to make it so that user enters currency only with numbers in SwiftUI textfield?

后端 未结 0 341
感情败类
感情败类 2021-01-19 06:08

Right now, I have the following:

private var currencyFormatter: NumberFormatter = {
    let f = NumberFormatter()
    // allow no currency symbol, extra digit         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题