<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITextInputTraits/enablesReturnKeyAutomatically",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UITextInputTraits(py)enablesReturnKeyAutomatically"
  },
  "title" : "enablesReturnKeyAutomatically"
}
-->

# enablesReturnKeyAutomatically

A Boolean value that indicates whether the system automatically enables the Return key when the user enters text.

```
optional var enablesReturnKeyAutomatically: Bool { get set }
```

## Discussion

The default value for this property is <doc://com.apple.documentation/documentation/Swift/false>. If you set it to <doc://com.apple.documentation/documentation/Swift/true>, the keyboard disables the Return key when the text entry area contains no text. As soon as the user enters some text, the Return key is automatically enabled.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)