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

# pointerVisibility(_:)

Sets the visibility of the pointer when it’s over the view.

## Declaration

```swift
nonisolated func pointerVisibility(_ visibility: Visibility) -> some View

```

## Parameters

- `visibility`: The pointer visibility to apply.

## Return Value

Return Value A view that changes the visibility of the pointer when hovered.

## See Also

### Modifying pointer appearance

- [pointerStyle(_:)](swiftui/view/pointerstyle(_:).md)
- [PointerStyle](swiftui/pointerstyle.md)
