This repo contains a basic example for how to incorporate StartWorkoutIntent to support Apple Watch Ultra's new Action Button.
To adopt the full functionality of action button for a workout app, the app need to have the following:
workout-processingmust be part ofWKBackgroundModesdeclared in the watch app's Info.plist file.var workoutStyle: WorkoutStylemust be annotated with@Parameter(otherwise the Settings app will only show open app action).
For chaining .result(actionButtonIntent:) to work (along with pause/resume intents, donation override), the app must meet the following criteria:
- The app must have an active workout session
- The app must be selected as the workout app by the user from the Action Button settings
References:
