<!--
{
  "availability" : [
    "macCatalyst: 13.1.0 -",
    "macOS: 10.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGEvent/tapIsEnabled(tap:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Core Graphics",
      "CoreGraphics"
    ],
    "preciseIdentifier" : "c:@F@CGEventTapIsEnabled"
  },
  "title" : "tapIsEnabled(tap:)"
}
-->

# tapIsEnabled(tap:)

Returns a Boolean value indicating whether an event tap is enabled.

```
class func tapIsEnabled(tap: CFMachPort) -> Bool
```

## Parameters

`tap`

The event tap to test.

## Return Value

If <doc://com.apple.documentation/documentation/Swift/true>, the specified event tap is enabled; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

For more information, see the function [`tapEnable(tap:enable:)`](/documentation/CoreGraphics/CGEvent/tapEnable(tap:enable:)).

---

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)