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

# add(_:identifier:)

Adds the given condition for monitoring.

## Declaration

```swift
func add(_ Condition: any CLCondition, identifier: String)
```

## Parameters

- `Condition`: The condition to monitor.
- `identifier`: A string that identifies the monitored condition.

## Discussion

Discussion The framework encapsulates the condition in an instance of CLMonitor.Record and then associates the record, along with the condition with the given identifier. The initial state is CLRegionState.unknown.

## See Also

### Adding and removing conditions

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