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

# cadence(_:unit:)

Creates a new alert for a range of cadence values.

## Declaration

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

## Parameters

- `range`: A closed range representing the cadence’s value.
- `unit`: The frequency units for the specified range.

## See Also

### Creating cadence alerts

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