Recognize changes in SwiftUI TextField with double value

前端 未结 0 1145
花落未央
花落未央 2020-12-05 20:18

I am using a TextField to let the user add a price for something. To prevent the user adding other values as a number, I change the keyboard type to .decimalPad

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