init(activity:location:distance:time:)
Creates a new pacer workout for the specified distance and time.
Declaration
init(activity: HKWorkoutActivityType, location: HKWorkoutSessionLocationType = .unknown, distance: Measurement<UnitLength>, time: Measurement<UnitDuration>)Parameters
- activity:
The workout activity type.
- location:
The workout location.
- distance:
The distance goal for the workout.
- time:
The time goal for the workout.