<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.8.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "EventKit",
  "identifier" : "/documentation/EventKit/EKCalendar/calendarIdentifier",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "EventKit"
    ],
    "preciseIdentifier" : "c:objc(cs)EKCalendar(py)calendarIdentifier"
  },
  "title" : "calendarIdentifier"
}
-->

# calendarIdentifier

A unique identifier for the calendar.

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

## Discussion

This property is set when the calendar is created and can be used as a local identifier. Use [`calendar(withIdentifier:)`](/documentation/EventKit/EKEventStore/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

[`calendarItemIdentifier`](/documentation/EventKit/EKCalendarItem/calendarItemIdentifier)

The calendar item’s unique identifier.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)