---
title: "calendarItem(withIdentifier:)"
framework: EventKit
role: symbol
role_heading: Instance Method
platforms: [iOS 6.0+, iPadOS 6.0+, Mac Catalyst 13.1+, macOS 10.8+, visionOS 1.0+, watchOS 2.0+]
path: eventkit/ekeventstore/1507433-calendaritemwithidentifier
---

# calendarItem(withIdentifier:)

Locates a reminder or the first occurrence of an event with the specified identifier.

## Declaration

```swift
func calendarItem(withIdentifier identifier: String) -> EKCalendarItem?
```

## Parameters

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

## Return Value

The reminder or the first occurrence of an event with the specified identifier, or `nil` if neither is found.

## See Also

### Accessing calendar events

- [event(withIdentifier:)](event(withidentifier:).md)
- [calendarItems(withExternalIdentifier:)](calendaritems(withexternalidentifier:).md)
- [remove(_:span:)](remove(_:span:).md)
- [remove(_:span:commit:)](remove(_:span:commit:).md)
- [remove(_:commit:)](remove(_:commit:).md)
- [save(_:span:)](save(_:span:).md)
- [save(_:span:commit:)](save(_:span:commit:).md)
- [save(_:commit:)](save(_:commit:).md)
