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

# source(withIdentifier:)

Locates an event source with the specified identifier.

## Declaration

```swift
func source(withIdentifier identifier: String) -> EKSource?
```

## Parameters

- `identifier`: The source’s unique identifier.

## Return Value

Return Value The source with the specified identifier, or nil if the source isn’t found.

## See Also

### Accessing account sources

- [sources](eventkit/ekeventstore/sources.md)
- [delegateSources](eventkit/ekeventstore/delegatesources.md)
