<!--
{
  "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/checkmark(displayed:options:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:5UIKit15UICellAccessoryV9checkmark9displayed7optionsA2C14DisplayedStateO_AC16CheckmarkOptionsVtFZ"
  },
  "title" : "checkmark(displayed:options:)"
}
-->

# checkmark(displayed:options:)

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

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

`options`

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

## 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.

---

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)