workoutType()
Returns the shared Hkworkouttype object.
Declaration
class func workoutType() -> HKWorkoutTypeReturn Value
The shared HKWorkoutType instance.
Discussion
This method returns an instance of the HKWorkoutType concrete subclass. HealthKit uses workout types to create samples that store information about individual workouts. Use workout type instances to create workout objects that you can save in the HealthKit store. For more information, see HKWorkoutType.
In HealthKit, all workouts use the same workout type.