I can\'t seem to find any information or figure out how to set the keyboard type on a TextField for SwiftUI. It would also be nice to be able to enable the secure text property,
To set TextField's keyboard type you need to add modifier .keyboardType().
TextField's
.keyboardType()
TextField(placeHolder, text: your text) .keyboardType(.numberPad)