<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: -",
    "tvOS: 14.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UICellAccessory-swift.struct/insert(displayed:options:actionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:5UIKit15UICellAccessoryV6insert9displayed7options13actionHandlerA2C14DisplayedStateO_AC13InsertOptionsVyycSgtFZ"
  },
  "title" : "insert(displayed:options:actionHandler:)"
}
-->

# insert(displayed:options:actionHandler:)

Creates an insert system accessory with the specified display state, configuration options, and optional action handler.

```
static func insert(displayed: UICellAccessory.DisplayedState = .whenEditing, options: UICellAccessory.InsertOptions = InsertOptions(), actionHandler: UICellAccessory.ActionHandler? = nil) -> UICellAccessory
```

## Parameters

`displayed`

The cell-editing states that the insert accessory appears in. This parameter has a default value of [`UICellAccessory.DisplayedState.whenEditing`](/documentation/UIKit/UICellAccessory-swift.struct/DisplayedState/whenEditing).

`options`

Configuration options for the insert accessory. See [`UICellAccessory.InsertOptions`](/documentation/UIKit/UICellAccessory-swift.struct/InsertOptions) for possible configuration options.

`actionHandler`

An optional closure that the system calls when a user interacts with the insert accessory.

## Return Value

A configured insert cell accessory. This accessory is a plus sign inside of a circle with the default system green color. This accessory appears on the leading edge of the cell.

---

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)