---
title: "cadence(_:unit:)"
framework: workoutkit
role: symbol
role_heading: Type Method
path: "workoutkit/workoutalert/cadence(_:unit:)-3fnpg"
---

# cadence(_:unit:)

Creates an alert for the specified cadence threshold.

## Declaration

```swift
static func cadence(_ value: Double, unit: UnitFrequency = WorkoutAlertMetric.countPerMinute) -> Self
```

## Parameters

- `value`: The target cadence threshold for the alert.
- `unit`: The frequency units used for the threshold.

## See Also

### Creating cadence alerts

- [cadence(_:unit:)](workoutkit/workoutalert/cadence(_:unit:)-y8da.md)
- [CadenceRangeAlert](workoutkit/cadencerangealert.md)
- [CadenceThresholdAlert](workoutkit/cadencethresholdalert.md)
