---
title: "init(selectionStyle:displayStyle:entityType:eventStore:)"
framework: eventkitui
role: symbol
role_heading: Initializer
path: "eventkitui/ekcalendarchooser/init(selectionstyle:displaystyle:entitytype:eventstore:)"
---

# init(selectionStyle:displayStyle:entityType:eventStore:)

Initializes a newly created calendar chooser for a specific entity type.

## Declaration

```swift
init(selectionStyle style: EKCalendarChooserSelectionStyle, displayStyle: EKCalendarChooserDisplayStyle, entityType: EKEntityType, eventStore: EKEventStore)
```

## Parameters

- `style`: Determines whether to allow selection of multiple calendars. Possible values are described in doc://com.apple.eventkitui/documentation/EventKitUI/EKCalendarChooserSelectionStyle.
- `displayStyle`: Determines which calendars to display. Possible values are described in doc://com.apple.eventkitui/documentation/EventKitUI/EKCalendarChooserDisplayStyle.
- `entityType`: The entity type of the calendar. Possible values are doc://com.apple.documentation/documentation/EventKit/EKEntityType/event and doc://com.apple.documentation/documentation/EventKit/EKEntityType/reminder.
- `eventStore`: The event store to which the calendars belong.

## Return Value

Return Value The initialized calendar chooser.

## See Also

### Initializing Calendar Choosers

- [init(selectionStyle:displayStyle:eventStore:)](eventkitui/ekcalendarchooser/init(selectionstyle:displaystyle:eventstore:).md)
