heartRate(_:unit:)
Creates a new heart rate alert for the target range.
Declaration
static func heartRate(_ range: ClosedRange<Double>, unit: UnitFrequency = WorkoutAlertMetric.countPerMinute) -> SelfParameters
- range:
A closed range of heart rate values.
- unit:
The frequency units used by the range values.