Contents

heartRate(_:unit:)

Creates a new heart rate alert for the target range.

Declaration

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

Parameters

  • range:

    A closed range of heart rate values.

  • unit:

    The frequency units used by the range values.

See Also

Creating heart rate alerts