KeyboardType(.NumericPad) not supporting For WatchOS in SwiftUI

                TextField("BG Value", text: $text).keyboardType(.numberPad)

when ever i tried to show numberpad as TextField Input i am getting error

Error as below : Cannot infer contextual base in reference to member 'numberPad' Value of type 'TextField<Text>' has no member 'keyboardType'

Any suggest me on this issue

Replies

Unfortunately this error is correct: .keyboardType is not supported on watchOS, so the user will always get the default text input options that are available on their device (keyboard, Scribble and Dictation on Series 7 and newer, or Scribble and Dictation on older devices).