<!--
{
  "availability" : [
    "iOS: 13.4.0 -",
    "iPadOS: 13.4.0 -",
    "macCatalyst: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIPointerStyle/init(shape:constrainedAxes:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:So14UIPointerStyleC5UIKitE5shape15constrainedAxesAbC0A5ShapeO_So6UIAxisVtcfc"
  },
  "title" : "init(shape:constrainedAxes:)"
}
-->

# init(shape:constrainedAxes:)

Morphs the pointer into the provided shape when hovering over the current region.

```
@MainActor @preconcurrency convenience init(shape: UIPointerShape, constrainedAxes: UIAxis = [])
```

## Parameters

`shape`

The [`UIPointerShape`](/documentation/UIKit/UIPointerShape-swift.enum) to use, defaults to `nil`.

`constrainedAxes`

An array of [`UIAxis`](/documentation/UIKit/UIAxis) directions in which to constrain the pointer. The default is no constraints.

---

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)