Instance Property

workoutGoalUnitType

The units associated with the workout goal.

Declaration

var workoutGoalUnitType: INWorkoutGoalUnitType { get }

Discussion

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.