---
title: "calendar(withIdentifier:)"
framework: eventkit
role: symbol
role_heading: Instance Method
path: "eventkit/ekeventstore/calendar(withidentifier:)"
---

# calendar(withIdentifier:)

Locates a calendar with the specified identifier.

## Declaration

```swift
func calendar(withIdentifier identifier: String) -> EKCalendar?
```

## Parameters

- `identifier`: The calendar’s unique identifier.

## Return Value

Return Value A calendar with a calendarIdentifier that matches the specified identifier.

## See Also

### Accessing calendars

- [defaultCalendarForNewEvents](eventkit/ekeventstore/defaultcalendarfornewevents.md)
- [defaultCalendarForNewReminders()](eventkit/ekeventstore/defaultcalendarfornewreminders().md)
- [calendars(for:)](eventkit/ekeventstore/calendars(for:).md)
- [saveCalendar(_:commit:)](eventkit/ekeventstore/savecalendar(_:commit:).md)
- [removeCalendar(_:commit:)](eventkit/ekeventstore/removecalendar(_:commit:).md)
- [calendars](eventkit/ekeventstore/calendars.md)
