Instantiates and returns a new workout activity.
- iOS 8.0+
- Mac Catalyst 13.0+Beta
- watchOS 2.0+
The type of activity being performed during the workout. For a list of possible activity types, see
The date and time when the activity started.
The date and time when the activity ended. This date must be equal to or later than the start date.
A workout activity.
The workout’s duration is calculated from its start and end times. The workout’s total distance, total energy burned, workout events, device, and metadata are all set to