---
title: calendarIdentifier
framework: eventkit
role: symbol
role_heading: Instance Property
path: eventkit/ekcalendar/calendaridentifier
---

# calendarIdentifier

A unique identifier for the calendar.

## Declaration

```swift
var calendarIdentifier: String { get }
```

## Discussion

Discussion This property is set when the calendar is created and can be used as a local identifier. Use calendar(withIdentifier:) to get a calendar with the specified identifier. A full sync with the calendar will lose this identifier. You should have a plan for dealing with a calendar whose identifier is no longer fetch-able by caching its other properties.

## See Also

### Related Documentation

- [calendarItemIdentifier](eventkit/ekcalendaritem/calendaritemidentifier.md)

### Accessing Calendar Properties

- [EKCalendarType](eventkit/ekcalendartype.md)
- [EKCalendarEventAvailabilityMask](eventkit/ekcalendareventavailabilitymask.md)
- [allowsContentModifications](eventkit/ekcalendar/allowscontentmodifications.md)
- [cgColor](eventkit/ekcalendar/cgcolor.md)
- [color](eventkit/ekcalendar/color.md)
- [isImmutable](eventkit/ekcalendar/isimmutable.md)
- [title](eventkit/ekcalendar/title.md)
- [type](eventkit/ekcalendar/type.md)
- [allowedEntityTypes](eventkit/ekcalendar/allowedentitytypes.md)
- [source](eventkit/ekcalendar/source.md)
- [isSubscribed](eventkit/ekcalendar/issubscribed.md)
- [supportedEventAvailabilities](eventkit/ekcalendar/supportedeventavailabilities.md)
- [DATETIME_COMPONENTS_DO_NOT_USE()](eventkit/datetime_components_do_not_use().md)
- [DATE_COMPONENTS_DO_NOT_USE()](eventkit/date_components_do_not_use().md)
