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

# detail(displayed:options:actionHandler:)

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

```
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 [`UICellAccessory.DisplayedState.always`](/documentation/UIKit/UICellAccessory-swift.struct/DisplayedState/always).

`options`

Configuration options for the detail accessory. See [`UICellAccessory.DetailOptions`](/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

A configured detail cell accessory. The accessory displays as the system information button. This accessory appears on the trailing 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)