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) -> SelfParameters
- range:
A closed range of speed values.
- unit:
The speed units used for the values.
- metric:
The metric used to measure the speed.