<!--
{
  "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/UITableViewCell/accessoryView",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UITableViewCell(py)accessoryView"
  },
  "title" : "accessoryView"
}
-->

# accessoryView

The view to use on the right side of the cell, typically as a control, in the table view’s normal state.

```
var accessoryView: UIView? { get set }
```

## Discussion

If the value of this property is not `nil`, the `UITableViewCell` class uses the given view for the accessory view in the table view’s normal (default) state; it ignores the value of the [`accessoryType`](/documentation/UIKit/UITableViewCell/accessoryType-swift.property) property. The provided accessory view can be a framework-provided control or label or a custom view. The accessory view appears in the right side of the cell.

The accessory view cross-fades between normal and editing states if it set for both states; use the [`editingAccessoryView`](/documentation/UIKit/UITableViewCell/editingAccessoryView) property to set the accessory view for the cell during editing mode. If this property is not set for both states, the cell is animated to slide in or out, as necessary.

## See Also

[`-  willTransitionToState:`](/documentation/UIKit/UITableViewCell/willTransition(to:))

Notifies the cell that it’s about to transition to a new cell state.

[`-  didTransitionToState:`](/documentation/UIKit/UITableViewCell/didTransition(to:))

Notifies the cell that it transitioned to a new cell state.



---

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)