---
title: UIPointerStyle
framework: uikit
role: symbol
role_heading: Class
path: uikit/uipointerstyle
---

# UIPointerStyle

An object that defines the pointer shape and effect.

## Declaration

```swift
@MainActor class UIPointerStyle
```

## Overview

Overview Whenever possible, match pointer styles to UIKit styles and make them consistent with the visual intent of similar views. note: When supporting the use of Apple Pencil, effect-based styles, such as a pointer style created using init(effect:shape:) are fully supported, but shape-based pointer styles created using init(shape:constrainedAxes:) aren’t. For more information, see Human Interface Guidelines.

## Topics

### Creating a pointer style

- [init(effect:shape:)](uikit/uipointerstyle/init(effect:shape:).md)
- [init(shape:constrainedAxes:)](uikit/uipointerstyle/init(shape:constrainedaxes:).md)
- [hidden()](uikit/uipointerstyle/hidden().md)
- [system()](uikit/uipointerstyle/system().md)

### Specifying pointer accessories

- [accessories](uikit/uipointerstyle/accessories.md)
- [UIPointerAccessory](uikit/uipointeraccessory.md)

## Relationships

### Inherits From

- [UIHoverStyle](uikit/uihoverstyle.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Pointer styles

- [UIPointerShape](uikit/uipointershape-swift.enum.md)
- [UIPointerEffect](uikit/uipointereffect-swift.enum.md)
- [UIPointerAccessory](uikit/uipointeraccessory.md)
