First letter in UiTextField lowercase

In Objective-C:

textField.autocapitalizationType = UITextAutocapitalizationTypeNone;

In Swift:

textField.autocapitalizationType = .none

You can set capitalization for TextField in the Text Input Traits of Text Field Attributes in XIB(interface Builder).


You can turn off auto-capitalization with the .autocapitalizationType property in the UITextInputTraits protocol.

textfield.autocapitalizationType = UITextAutocapitalizationTypeNone;

For SwiftUI,

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