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

# enableInputClicksWhenVisible

Specifies whether or not an input view enables input clicks.

```
optional var enableInputClicksWhenVisible: Bool { get }
```

## Parameters

`enableInputClicksWhenVisible`

Return <doc://com.apple.documentation/documentation/Swift/true> to enable input clicks by way of the [`playInputClick()`](/documentation/UIKit/UIDevice/playInputClick()) method, or <doc://com.apple.documentation/documentation/Swift/false> to disable input clicks. The value is <doc://com.apple.documentation/documentation/Swift/false> by default.

## Discussion

In your custom subclass of [`UIView`](/documentation/UIKit/UIView), implement this property as a getter method. Return <doc://com.apple.documentation/documentation/Swift/true> to enable input clicks in your custom input or keyboard accessory view, as follows:

```swift
var enableInputClicksWhenVisible: Bool {
    return true
}
```

Input clicks will be produced only if the user has also enabled keyboard clicks in Settings > Sounds.

---

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)