Contents

speed(_:unit:metric:)

Returns a new speed alert for the provided range of values.

Declaration

static func speed(_ range: ClosedRange<Double>, unit: UnitSpeed, metric: WorkoutAlertMetric = .current) -> Self

Parameters

  • range:

    A closed range of speed values.

  • unit:

    The speed units used for the values.

  • metric:

    The metric used to measure the speed.

See Also

Creating speed range alerts