// .number @State private var score = 0 // Int TextField("Enter your score", value: $score, format: .number)
Paul ⟩ How to format a TextField for numbers
flaviocopes ⟩ SwiftUI: formatting decimals in Text view
Sundell ⟩ Formatting numbers in Swift
Sarunw ⟩ TextField in SwiftUI
TextField
textField.style(_:)
Last updated 2 years ago