Instance Method


Adds a sample to be associated with the workout.


func add(_ samples: [HKSample], completion: @escaping (Bool, Error?) -> Void)

See Also

Associating Samples with the Workout

func seriesBuilder(for: HKSeriesType) -> HKSeriesBuilder?

Returns the series builder for the specified type, creating a new builder, if necessary.

func statistics(for: HKQuantityType) -> HKStatistics?

Returns the statistics calculated for matching samples added to the workout.