Contents

speed(_:unit:metric:)

Returns a new speed threshold alert.

Declaration

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

Parameters

  • value:

    The value of the target threshold.

  • unit:

    The speed units used by the value.

  • metric:

    The metric used to measure the speed.

See Also

Creating speed threshold alerts