The possible locations for swimming.


enum HKWorkoutSwimmingLocationType : Int


Swimming Locations

case openWater

The user swam in open water like a lake or ocean.

case pool

The user swam in a pool.

case unknown

The swimming location could not be determined.

See Also

Session Settings

var activityType: HKWorkoutActivityType

The workout session’s activity type.

var locationType: HKWorkoutSessionLocationType

The workout session’s location.

enum HKWorkoutSessionLocationType

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

var swimmingLocationType: HKWorkoutSwimmingLocationType

The workout session’s swimming location.

var lapLength: HKQuantity?

The length of the lap for a workout session.