<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKWorkoutZoneConfiguration",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "s:9HealthKit26HKWorkoutZoneConfigurationV"
  },
  "title" : "HKWorkoutZoneConfiguration"
}
-->

# HKWorkoutZoneConfiguration

A structure that defines a complete set of zones for a quantity type.

```
struct HKWorkoutZoneConfiguration
```

## Overview

This structure contains an ordered array of zones and identifies the [`source`](/documentation/HealthKit/HKWorkoutZoneConfiguration/source-swift.property) of the configuration. The system generates zones automatically based on people’s health metrics. People can configure zones manually in Health Settings, or apps can provide custom zones for specific workouts.

## Topics

### Creating zone configurations

[`init(quantityType:zoneBoundaries:)`](/documentation/HealthKit/HKWorkoutZoneConfiguration/init(quantityType:zoneBoundaries:))

Initializes a zone configuration from zone boundaries for the specified quantity type.

### Accessing configuration properties

[`quantityType`](/documentation/HealthKit/HKWorkoutZoneConfiguration/quantityType)

A property that specifies the quantity type to which the zones apply.

[`zones`](/documentation/HealthKit/HKWorkoutZoneConfiguration/zones)

A property that contains the workout zones, ordered from lowest to highest threshold.

### Identifying the configuration source

[`source`](/documentation/HealthKit/HKWorkoutZoneConfiguration/source-swift.property)

A property that identifies the origin of this zone configuration.

[`Source`](/documentation/HealthKit/HKWorkoutZoneConfiguration/Source-swift.enum)

An enumeration that identifies the origin of the zone configuration.

### Comparing zone configurations

[`==(_:_:)`](/documentation/HealthKit/HKWorkoutZoneConfiguration/==(_:_:))

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)