---
title: UICellAccessory
framework: uikit
role: symbol
role_heading: Structure
path: uikit/uicellaccessory-swift.struct
---

# UICellAccessory

An accessory in a collection view list cell.

## Declaration

```swift
struct UICellAccessory
```

## Overview

Overview A cell accessory is a visual element that you can add to a list cell (UICollectionViewListCell). You use a cell accessory as a visual indicator or to let a user perform a cell-specific action like selecting, reordering, or deleting the cell. A cell accessory appears either on the leading or the trailing edge of a cell, outside of the cell’s content view. UIKit defines a set of standard system cell accessories. System accessories have default system-defined appearances, but you can make some customizations to them, like setting a custom tint color. You can’t customize the placement of system accessories. If you want additional customization, you can create a custom accessory with customView(configuration:). You add accessories to a list cell by setting its accessories array. cell.accessories = [      .checkmark(),      .disclosureIndicator(options: .init(tintColor: .systemGray)),      .delete(),     .reorder()  ] important: The system throws an exception if you include more than one instance of any system accessory. You can include multiple custom accessories.

## Topics

### Creating a disclosure indicator

- [disclosureIndicator(displayed:options:)](uikit/uicellaccessory-swift.struct/disclosureindicator(displayed:options:).md)
- [UICellAccessory.DisclosureIndicatorOptions](uikit/uicellaccessory-swift.struct/disclosureindicatoroptions.md)

### Creating an outline disclosure

- [outlineDisclosure(displayed:options:actionHandler:)](uikit/uicellaccessory-swift.struct/outlinedisclosure(displayed:options:actionhandler:).md)
- [UICellAccessory.OutlineDisclosureOptions](uikit/uicellaccessory-swift.struct/outlinedisclosureoptions.md)

### Creating a popup menu accessory

- [popUpMenu(_:displayed:options:selectedElementDidChangeHandler:)](uikit/uicellaccessory-swift.struct/popupmenu(_:displayed:options:selectedelementdidchangehandler:).md)
- [UICellAccessory.MenuSelectedElementDidChangeHandler](uikit/uicellaccessory-swift.struct/menuselectedelementdidchangehandler.md)
- [UICellAccessory.PopUpMenuOptions](uikit/uicellaccessory-swift.struct/popupmenuoptions.md)

### Creating a checkmark accessory

- [checkmark(displayed:options:)](uikit/uicellaccessory-swift.struct/checkmark(displayed:options:).md)
- [UICellAccessory.CheckmarkOptions](uikit/uicellaccessory-swift.struct/checkmarkoptions.md)

### Creating a delete accessory

- [delete(displayed:options:actionHandler:)](uikit/uicellaccessory-swift.struct/delete(displayed:options:actionhandler:).md)
- [UICellAccessory.DeleteOptions](uikit/uicellaccessory-swift.struct/deleteoptions.md)

### Creating an insert accessory

- [insert(displayed:options:actionHandler:)](uikit/uicellaccessory-swift.struct/insert(displayed:options:actionhandler:).md)
- [UICellAccessory.InsertOptions](uikit/uicellaccessory-swift.struct/insertoptions.md)

### Creating a reorder accessory

- [reorder(displayed:options:)](uikit/uicellaccessory-swift.struct/reorder(displayed:options:).md)
- [UICellAccessory.ReorderOptions](uikit/uicellaccessory-swift.struct/reorderoptions.md)

### Creating a multiselect accessory

- [multiselect(displayed:options:)](uikit/uicellaccessory-swift.struct/multiselect(displayed:options:).md)
- [UICellAccessory.MultiselectOptions](uikit/uicellaccessory-swift.struct/multiselectoptions.md)

### Creating a label accessory

- [label(text:displayed:options:)](uikit/uicellaccessory-swift.struct/label(text:displayed:options:).md)
- [UICellAccessory.LabelOptions](uikit/uicellaccessory-swift.struct/labeloptions.md)

### Creating a detail accessory

- [detail(displayed:options:actionHandler:)](uikit/uicellaccessory-swift.struct/detail(displayed:options:actionhandler:).md)
- [UICellAccessory.DetailOptions](uikit/uicellaccessory-swift.struct/detailoptions.md)

### Creating a custom accessory

- [customView(configuration:)](uikit/uicellaccessory-swift.struct/customview(configuration:).md)
- [UICellAccessory.CustomViewConfiguration](uikit/uicellaccessory-swift.struct/customviewconfiguration.md)

### Checking the accessory’s type

- [accessoryType](uikit/uicellaccessory-swift.struct/accessorytype-swift.property.md)
- [UICellAccessory.AccessoryType](uikit/uicellaccessory-swift.struct/accessorytype-swift.enum.md)

### Customizing appearance and placement

- [UICellAccessory.LayoutDimension](uikit/uicellaccessory-swift.struct/layoutdimension.md)
- [UICellAccessory.Placement](uikit/uicellaccessory-swift.struct/placement.md)
- [UICellAccessory.DisplayedState](uikit/uicellaccessory-swift.struct/displayedstate.md)

### Performing accessory actions

- [UICellAccessory.ActionHandler](uikit/uicellaccessory-swift.struct/actionhandler.md)

## See Also

### Managing cell accessories

- [accessories](uikit/uicollectionviewlistcell/accessories-8nui4.md)
