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

# event(withIdentifier:)

Locates the first occurrence of an event with a given identifier.

## Declaration

```swift
func event(withIdentifier identifier: String) -> EKEvent?
```

## Parameters

- `identifier`: The identifier of the event.

## Mentioned in

Retrieving events and reminders

## Return Value

Return Value The event that corresponds with identifier, or nil if no event is found.

## See Also

### Accessing calendar events

- [calendarItem(withIdentifier:)](eventkit/ekeventstore/calendaritem(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)
