<!--
{
  "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/Placement",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:5UIKit15UICellAccessoryV9PlacementO"
  },
  "title" : "UICellAccessory.Placement"
}
-->

# UICellAccessory.Placement

Constants that describe the placement of the accessory within the cell.

```
enum Placement
```

## Topics

### Specifying accessory placement

[`case leading(displayed: UICellAccessory.DisplayedState, at: UICellAccessory.Placement.Position)`](/documentation/UIKit/UICellAccessory-swift.struct/Placement/leading(displayed:at:))

The accessory appears on the leading edge of the cell.

[`case trailing(displayed: UICellAccessory.DisplayedState, at: UICellAccessory.Placement.Position)`](/documentation/UIKit/UICellAccessory-swift.struct/Placement/trailing(displayed:at:))

The accessory appears on the trailing edge of the cell.

### Specifying position

[`static func position(after: UICellAccessory) -> UICellAccessory.Placement.Position`](/documentation/UIKit/UICellAccessory-swift.struct/Placement/position(after:))

Provides a position after the accessory that matches the specified type, or at the end if there’s no matching type.

[`static func position(before: UICellAccessory) -> UICellAccessory.Placement.Position`](/documentation/UIKit/UICellAccessory-swift.struct/Placement/position(before:))

Provides a position before the accessory that matches the specified type, or at the beginning if there’s no matching type.

[`typealias Position`](/documentation/UIKit/UICellAccessory-swift.struct/Placement/Position)

The index position of the cell accessory in relation to the other accessories in the specified array.



---

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)