TextField โŸฉ formats

// .number
@State private var score = 0    // Int
TextField("Enter your score", value: $score, format: .number)

Last updated