---
title: "init(_:position:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uipointeraccessory/init(_:position:)"
---

# init(_:position:)

Creates a pointer accessory with the specified shape and position.

## Declaration

```swift
@MainActor @preconcurrency convenience init(_ shape: UIPointerShape, position: UIPointerAccessory.Position)
```

## Parameters

- `shape`: One of the available doc://com.apple.uikit/documentation/UIKit/UIPointerShape-swift.enum shapes.
- `position`: One of the available doc://com.apple.uikit/documentation/UIKit/UIPointerAccessory/Position-swift.struct positions.

## See Also

### Creating a pointer accessory

- [arrow(_:)](uikit/uipointeraccessory/arrow(_:).md)
