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

# 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.

## Mentioned in

Retrieving events and reminders

## Return Value

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:)](eventkit/ekeventstore/event(withidentifier:).md)
- [calendarItems(withExternalIdentifier:)](eventkit/ekeventstore/calendaritems(withexternalidentifier:).md)
- [remove(_:span:)](eventkit/ekeventstore/remove(_:span:).md)
- [remove(_:span:commit:)](eventkit/ekeventstore/remove(_:span:commit:).md)
- [remove(_:commit:)](eventkit/ekeventstore/remove(_:commit:).md)
- [save(_:span:)](eventkit/ekeventstore/save(_:span:).md)
- [save(_:span:commit:)](eventkit/ekeventstore/save(_:span:commit:).md)
- [save(_:commit:)](eventkit/ekeventstore/save(_:commit:).md)
