How to set Keyboard type of TextField in SwiftUI?

后端 未结 7 1480
灰色年华
灰色年华 2021-02-03 19:46

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,

7条回答
  •  無奈伤痛
    2021-02-03 20:34

    I'm the dev that answered that post - there's no official way to do so at the moment. Your best bet at the moment is to wrap UITextField – Matteo Pacini

    That sums it up, guess we are stuck with wrapping UITextField for now.

提交回复
热议问题