Instance Property


The units associated with the workout goal.


var workoutGoalUnitType: INWorkoutGoalUnitType { get }


If the user specified a goal, this property contains the units for measuring that goal. The units reflect a distance, a time, or a unit of energy. You get the goal’s numerical value from the goalValue property.

See Also

Specifying Workout Details

var workoutName: INSpeakableString?

The name of the workout.

var goalValue: Double?

The user-supplied numerical goal of the workout.

var isOpenEnded: Bool?

A Boolean value that indicates whether the workout is open ended.