<!--
{
  "availability" : [
    "iOS: 13.4.0 -",
    "iPadOS: 13.4.0 -",
    "macCatalyst: 13.4.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIButton/pointerStyleProvider-1d4d2",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIButton(py)pointerStyleProvider"
  },
  "title" : "pointerStyleProvider"
}
-->

# pointerStyleProvider

A block that returns the pointer style to use when the pointer hovers over the button.

```
@property (nonatomic, copy, readwrite, nullable) UIButtonPointerStyleProvider pointerStyleProvider;
```

## Discussion

To change the appearance of the pointer when it hovers over the button, create a [`UIButtonPointerStyleProvider`](/documentation/UIKit/UIButtonPointerStyleProvider) block that returns a [`UIPointerStyle`](/documentation/UIKit/UIPointerStyle) describing the pointer shape and content effect. Then assign the closure to [`pointerStyleProvider`](/documentation/UIKit/UIButton/pointerStyleProvider-1d4d2). For more information, see [Enhancing your iPad app with pointer interactions](/documentation/UIKit/enhancing-your-ipad-app-with-pointer-interactions).

---

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)