---
title: "handPointerBehavior(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/handpointerbehavior(_:)"
---

# handPointerBehavior(_:)

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

## Declaration

```swift
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

Return Value A view that applies the given behavior to the hand pointer.

## See Also

### Changing view appearance for hover events

- [hoverEffect(_:)](swiftui/view/hovereffect(_:).md)
- [HoverEffect](swiftui/hovereffect.md)
- [hoverEffect(_:in:isEnabled:)](swiftui/view/hovereffect(_:in:isenabled:).md)
- [hoverEffect(in:isEnabled:body:)](swiftui/view/hovereffect(in:isenabled:body:).md)
- [CustomHoverEffect](swiftui/customhovereffect.md)
- [ContentHoverEffect](swiftui/contenthovereffect.md)
- [HoverEffectGroup](swiftui/hovereffectgroup.md)
- [hoverEffectGroup()](swiftui/view/hovereffectgroup().md)
- [hoverEffectGroup(_:)](swiftui/view/hovereffectgroup(_:).md)
- [hoverEffectGroup(id:in:behavior:)](swiftui/view/hovereffectgroup(id:in:behavior:).md)
- [GroupHoverEffect](swiftui/grouphovereffect.md)
- [HoverEffectContent](swiftui/hovereffectcontent.md)
- [EmptyHoverEffectContent](swiftui/emptyhovereffectcontent.md)
- [HandPointerBehavior](swiftui/handpointerbehavior.md)
