<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "EventKit",
  "identifier" : "/documentation/EventKit/EKEventStoreRequestAccessCompletionHandler",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "EventKit"
    ],
    "preciseIdentifier" : "c:@T@EKEventStoreRequestAccessCompletionHandler"
  },
  "title" : "EKEventStoreRequestAccessCompletionHandler"
}
-->

# EKEventStoreRequestAccessCompletionHandler

The signature for a closure that EventKit calls when requesting access to event and reminder data.

```
typealias EKEventStoreRequestAccessCompletionHandler = (Bool, (any Error)?) -> Void
```

## Parameters

`granted`

<doc://com.apple.documentation/documentation/Swift/true> if the user allows the app to access data in the event store; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

`error`

The error that occurred, if any; otherwise, `nil`.

## Discussion

---

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)