---
title: "init(sources:)"
framework: eventkit
role: symbol
role_heading: Initializer
path: "eventkit/ekeventstore/init(sources:)"
---

# init(sources:)

Creates an event store that contains data for the specified sources.

## Declaration

```swift
init(sources: [EKSource])
```

## Parameters

- `sources`: An array of sources the event store should contain. This array may include delegate sources.

## Return Value

Return Value An event store that contains data for a specific collection of event sources.

## See Also

### Creating event stores

- [init()](eventkit/ekeventstore/init().md)
- [eventStoreIdentifier](eventkit/ekeventstore/eventstoreidentifier.md)
