Instance Property

endDate

The ending time and date for this workout session.

Declaration

var endDate: Date? { get }

Discussion

This property is set to nil when the workout session is initialized. The system assigns an end date when the session’s state changes to HKWorkoutSessionState.ended.

See Also

Accessing Session Data

var startDate: Date?

The starting time and date for this workout session.

var state: HKWorkoutSessionState

The workout session’s current state.

var workoutConfiguration: HKWorkoutConfiguration

The configuration object that describes this workout.