First letter in UiTextField lowercase

前端 未结 11 1506
旧时难觅i
旧时难觅i 2020-12-24 04:45

How do you make it so that when you start typing on the keyboard after youve clicked on a UITextfield the first letter isn\'t a capital automatically?

11条回答
  •  星月不相逢
    2020-12-24 05:23

    For SwiftUI,

    TextField("I want entered text to be all lowercase", text:$myText)
         .autocapitalization(.none)
    

提交回复
热议问题