---
title: "add(_:identifier:assuming:)"
framework: corelocation
role: symbol
role_heading: Instance Method
path: "corelocation/clmonitor-2r51v/add(_:identifier:assuming:)"
---

# add(_:identifier:assuming:)

Adds the monitoring condition with the identifier and initial state you specify.

## Declaration

```swift
func add(_ condition: any CLCondition, identifier: String, assuming state: CLMonitor.Event.State)
```

## Parameters

- `condition`: The condition to monitor.
- `identifier`: A string that identifies the monitored condition.
- `state`: The monitoring state to initialize the condition with.

## See Also

### Adding and removing conditions

- [add(_:identifier:)](corelocation/clmonitor-2r51v/add(_:identifier:).md)
- [record(for:)](corelocation/clmonitor-2r51v/record(for:).md)
- [remove(_:)](corelocation/clmonitor-2r51v/remove(_:).md)
