---
title: "detail(displayed:options:actionHandler:)"
framework: uikit
role: symbol
role_heading: Type Method
path: "uikit/uicellaccessory-swift.struct/detail(displayed:options:actionhandler:)"
---

# detail(displayed:options:actionHandler:)

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

## Declaration

```swift
static func detail(displayed: UICellAccessory.DisplayedState = .always, options: UICellAccessory.DetailOptions = DetailOptions(), actionHandler: UICellAccessory.ActionHandler? = nil) -> UICellAccessory
```

## Parameters

- `displayed`: The cell-editing states that the detail accessory appears in. This parameter has a default value of doc://com.apple.uikit/documentation/UIKit/UICellAccessory-swift.struct/DisplayedState/always.
- `options`: Configuration options for the detail accessory. See doc://com.apple.uikit/documentation/UIKit/UICellAccessory-swift.struct/DetailOptions for possible configuration options.
- `actionHandler`: An optional closure that the system calls when a user interacts with the detail accessory.

## Return Value

Return Value A configured detail cell accessory. The accessory displays as the system information button. This accessory appears on the trailing edge of the cell.

## See Also

### Creating a detail accessory

- [UICellAccessory.DetailOptions](uikit/uicellaccessory-swift.struct/detailoptions.md)
