Instance Property


The workout’s end date and time.


var endDate: Date? { get }

See Also

Ending the Workout

func endCollection(withEnd: Date, completion: (Bool, Error?) -> Void)

Stops the collection of data, sets the workout’s end date, and deactivates the workout builder.

func finishWorkout(completion: (HKWorkout?, Error?) -> Void)

Creates the workout, using the samples and events added to the builder, and saves it to the HealthKit store.

func discardWorkout()

Stops the collection of data and discards the current results without saving the workout.