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

# rightViewMode

A mode that controls when the right overlay view appears in the text field.

```
var rightViewMode: UITextField.ViewMode { get set }
```

## Discussion

The default value for this property is [`UITextField.ViewMode.never`](/documentation/UIKit/UITextField/ViewMode/never). Note that the right overlay view flips automatically in a right-to-left user interface.

---

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)