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

# inputAccessoryView

The custom input accessory view to display when the responder becomes the first responder.

```
var inputAccessoryView: UIView? { get }
```

## Discussion

This property is typically used to attach an accessory view to the system-supplied keyboard that’s presented for [`UITextField`](/documentation/UIKit/UITextField) and [`UITextView`](/documentation/UIKit/UITextView) objects.

The value of this read-only property is `nil`. If you want to attach custom controls to a system-supplied input view (such as the system keyboard) or to a custom input view (one you provide in the [`inputView`](/documentation/UIKit/UIResponder/inputView) property), redeclare this property as read-write in a [`UIResponder`](/documentation/UIKit/UIResponder) subclass. You can then use this property to manage a custom accessory view. When the responder becomes the first responder, the responder infrastructure attaches the accessory view to the appropriate input view before displaying it.

This property has special considerations in visionOS:

- In apps built for visionOS, this property isn’t available. Use <doc://com.apple.documentation/documentation/SwiftUI/ToolbarItemPlacement/bottomOrnament> instead.
- In compatible iPad and iPhone apps running in visionOS, the app’s idiom determines this property’s behavior. For apps running in the [`UIUserInterfaceIdiom.pad`](/documentation/UIKit/UIUserInterfaceIdiom/pad) idiom, the accessory view renders at the bottom of the app window. For apps running in the [`UIUserInterfaceIdiom.phone`](/documentation/UIKit/UIUserInterfaceIdiom/phone) idiom, this property doesn’t have any effect.

---

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)