speed(_:unit:metric:)
Creates a new speed alert for the provided range.
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 by the range.
- metric:
The metric used for the speed measurements.