<!--
{
  "availability" : [
    "macCatalyst: 13.1.0 - 13.1.0"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGCursorIsVisible()",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Graphics"
    ],
    "preciseIdentifier" : "c:@F@CGCursorIsVisible"
  },
  "title" : "CGCursorIsVisible()"
}
-->

# CGCursorIsVisible()

Returns a Boolean value indicating whether the mouse cursor is visible.

```
func CGCursorIsVisible() -> boolean_t
```

## Return Value

If `true`, the cursor is visible on any display; otherwise, `false`.

## Discussion

To hide or show the cursor, you can use the functions [`CGDisplayHideCursor(_:)`](/documentation/CoreGraphics/CGDisplayHideCursor(_:)) and [`CGDisplayShowCursor(_:)`](/documentation/CoreGraphics/CGDisplayShowCursor(_:)).

---

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)