Instance Property


The workout session’s location.


var locationType: HKWorkoutSessionLocationType { get set }


For a list of possible values, see HKWorkoutSessionLocationType.

See Also

Session Settings

var activityType: HKWorkoutActivityType

The workout session’s activity type.

enum HKWorkoutSessionLocationType

A constant indicating whether the workout session takes place indoors or outdoors.

var swimmingLocationType: HKWorkoutSwimmingLocationType

The workout session’s swimming location.

enum HKWorkoutSwimmingLocationType

The possible locations for swimming.

var lapLength: HKQuantity?

The length of the lap for a workout session.