Contents

workoutStyle

The workout style for the intent.

Declaration

var workoutStyle: Self.WorkoutStyle { get set }

Mentioned in

Discussion

Your implementation’s workoutStyle property must be a type you define that adopts either the AppEnum or AppEntity protocol. Declare this property using the AppIntent.Parameter property wrapper.

// Define a parameter that specifies the type of workout that this
// intent starts.
@Parameter(title: "Start Workout Entity")
var workoutStyle: WorkoutEnum

For a complete description of implementing a StartWorkoutIntent, see Responding to the Action button on Apple Watch Ultra

See Also

Defining supported workouts