<!--
{
  "availability" : [
    "iOS: 13.4.0 -",
    "iPadOS: 13.4.0 -",
    "macCatalyst: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIPointerShape-swift.enum",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:5UIKit14UIPointerShapeO"
  },
  "title" : "UIPointerShape"
}
-->

# UIPointerShape

An object that defines the shape of custom pointers.

```
enum UIPointerShape
```

## Overview

If the desired pointer shape can be expressed as a rounded rectangle, use [`UIPointerShape.roundedRect(_:radius:)`](/documentation/UIKit/UIPointerShape-swift.enum/roundedRect(_:radius:)) for best results.

## Topics

### Specifying pointer shapes

[`case horizontalBeam(length: CGFloat)`](/documentation/UIKit/UIPointerShape-swift.enum/horizontalBeam(length:))

The pointer morphs into a horizontal beam using the specified length.

[`case verticalBeam(length: CGFloat)`](/documentation/UIKit/UIPointerShape-swift.enum/verticalBeam(length:))

The pointer morphs into a vertical beam using the specified length.

[`case path(UIBezierPath)`](/documentation/UIKit/UIPointerShape-swift.enum/path(_:))

The pointer morphs into the given Bézier path.

[`case roundedRect(CGRect, radius: CGFloat)`](/documentation/UIKit/UIPointerShape-swift.enum/roundedRect(_:radius:))

The pointer morphs into a rounded rectangle using the provided corner radius.

### Accessing corner radius

[`static let defaultCornerRadius: CGFloat`](/documentation/UIKit/UIPointerShape-swift.enum/defaultCornerRadius)

The default corner radius for a pointer using a rounded rectangle.

## Relationships

### Conforms To

[`Copyable`](/documentation/Swift/Copyable)

[`Escapable`](/documentation/Swift/Escapable)

---

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)