---
title: "init(for:eventStore:)"
framework: eventkit
role: symbol
role_heading: Initializer
path: "eventkit/ekcalendar/init(for:eventstore:)"
---

# init(for:eventStore:)

Creates a new calendar that can contain the given entity type.

## Declaration

```swift
init(for entityType: EKEntityType, eventStore: EKEventStore)
```

## Parameters

- `entityType`: The entity type that this calendar may support.
- `eventStore`: The event store in which to create this calendar.

## Return Value

Return Value The created calendar.

## Discussion

Discussion You can only create calendars that accept either reminders or events. Some servers might allow mixing the two, although it is not common.

## See Also

### Creating Calendars

- [init(eventStore:)](eventkit/ekcalendar/init(eventstore:).md)
