<!--
{
  "availability" : [
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/pointerVisibility(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE17pointerVisibilityyQrAA0E0OF"
  },
  "title" : "pointerVisibility(_:)"
}
-->

# pointerVisibility(_:)

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

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

## Parameters

`visibility`

The pointer visibility to apply.

## Return Value

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

---

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)