---
title: "position(before:)"
framework: uikit
role: symbol
role_heading: Type Method
path: "uikit/uicellaccessory-swift.struct/placement/position(before:)"
---

# position(before:)

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

## Declaration

```swift
static func position(before accessory: UICellAccessory) -> UICellAccessory.Placement.Position
```

## See Also

### Specifying position

- [position(after:)](uikit/uicellaccessory-swift.struct/placement/position(after:).md)
- [UICellAccessory.Placement.Position](uikit/uicellaccessory-swift.struct/placement/position.md)
