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

# checkmark(displayed:options:)

Creates a checkmark system accessory with the specified display state and configuration options.

## Declaration

```swift
static func checkmark(displayed: UICellAccessory.DisplayedState = .always, options: UICellAccessory.CheckmarkOptions = CheckmarkOptions()) -> UICellAccessory
```

## Parameters

- `displayed`: The cell-editing states that the checkmark 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 checkmark. See doc://com.apple.uikit/documentation/UIKit/UICellAccessory-swift.struct/CheckmarkOptions for possible configuration options.

## Return Value

Return Value A configured checkmark cell accessory. This accessory is a checkmark with the default system green color. This accessory appears on the trailing edge of the cell.

## See Also

### Creating a checkmark accessory

- [UICellAccessory.CheckmarkOptions](uikit/uicellaccessory-swift.struct/checkmarkoptions.md)
