Instance Method

beginCollection(withStart:completion:)

Sets the workout’s start date and begins building the workout.

Declaration

func beginCollection(withStart startDate: Date, completion: @escaping (Bool, Error?) -> Void)

See Also

Starting the Workout

var startDate: Date?

The workout’s start date and time.

func elapsedTime(at: Date) -> TimeInterval

Calculates the duration of the workout at the specified time.