<!--
{
  "availability" : [
    "iOS: 6.0.0 - 12.0.0",
    "iPadOS: 6.0.0 - 12.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIWebView/keyboardDisplayRequiresUserAction",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIWebView(py)keyboardDisplayRequiresUserAction"
  },
  "title" : "keyboardDisplayRequiresUserAction"
}
-->

# keyboardDisplayRequiresUserAction

A Boolean value indicating whether web content can programmatically display the keyboard.

```
var keyboardDisplayRequiresUserAction: Bool { get set }
```

## Discussion

When this property is set to <doc://com.apple.documentation/documentation/Swift/true>, the user must explicitly tap the elements in the web view to display the keyboard (or other relevant input view) for that element. When set to <doc://com.apple.documentation/documentation/Swift/false>, a focus event on an element causes the input view to be displayed and associated with that element automatically.

The default value for this property is <doc://com.apple.documentation/documentation/Swift/true>.

---

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)