<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/handPointerBehavior(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE19handPointerBehavioryQrAA04HandeF0VSgF"
  },
  "title" : "handPointerBehavior(_:)"
}
-->

# handPointerBehavior(_:)

Sets the behavior of the hand pointer while the user is interacting with
the view.

```
nonisolated func handPointerBehavior(_ behavior: HandPointerBehavior?) -> some View
```

## Parameters

`behavior`

The behavior to apply to the hand pointer.
If `nil`, the hand pointer behavior will be inherited from the view’s
ancestors.

## Return Value

A view that applies the given behavior to the hand 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)