<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIPointerAccessory",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIPointerAccessory"
  },
  "title" : "UIPointerAccessory"
}
-->

# UIPointerAccessory

Constants that describe accessories to display alongside the primary pointer.

```
@MainActor class UIPointerAccessory
```

## Topics

### Creating a pointer accessory

[`init(_:position:)`](/documentation/UIKit/UIPointerAccessory/init(_:position:))

Creates a pointer accessory with the specified shape and position.

[`arrow(_:)`](/documentation/UIKit/UIPointerAccessory/arrow(_:))

Creates a pointer accessory with an arrow shape at the specified position.

[`accessoryWithShape:position:`](/documentation/UIKit/UIPointerAccessory/accessoryWithShape:position:)

Creates a pointer accessory with the specified shape and position.

[`arrowAccessoryWithPosition:`](/documentation/UIKit/UIPointerAccessory/arrowAccessoryWithPosition:)

Creates a pointer accessory at the specified position.

### Matching the angle

[`orientationMatchesAngle`](/documentation/UIKit/UIPointerAccessory/orientationMatchesAngle)

A Boolean value that indicates whether the system rotates the accessory to match its angle.

### Getting the shape

[`shape`](/documentation/UIKit/UIPointerAccessory/shape-8pp0a)

The shape of the accessory.

[`shape`](/documentation/UIKit/UIPointerAccessory/shape-9jmm8)

The shape of the accessory.

### Getting the position

[`position`](/documentation/UIKit/UIPointerAccessory/position-swift.property)

The position of the accessory relative to the primary pointer.

[`UIPointerAccessory.Position`](/documentation/UIKit/UIPointerAccessory/Position-swift.struct)

A structure that specifies the position of the accessory relative to the primary pointer.

[`UIPointerAccessoryPosition`](/documentation/UIKit/UIPointerAccessoryPosition)

A structure that specifies the position of the accessory relative to the primary pointer.



---

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)