Instance Property

goalValue

The user-supplied numerical goal of the workout.

Declaration

@nonobjc final var goalValue: Double? { get }

Discussion

If the user specified a goal, this property contains the numerical value of that goal. For example, if the user specifies a 40 minute workout then this property has the value 40. You get the units associated with this goal from the workoutGoalUnitType property.

See Also

Specifying Workout Details

var workoutName: INSpeakableString?

The name of the workout.

var workoutGoalUnitType: INWorkoutGoalUnitType

The units associated with the workout goal.

var isOpenEnded: Bool?

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