<!--
{
  "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/HKWorkout/zoneGroup(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "s:So9HKWorkoutC9HealthKitE9zoneGroup3forAC0a4ZoneE0VSgSo14HKQuantityTypeC_tF"
  },
  "title" : "zoneGroup(for:)"
}
-->

# zoneGroup(for:)

Returns the current zone group for the specified quantity type.

```
func zoneGroup(for quantityType: HKQuantityType) -> HKWorkoutZoneGroup?
```

## Parameters

`quantityType`

The quantity type for which to retrieve zone information.

## Return Value

The zone group with current time-in-zone data, or `nil` if no zone information is available.

## Discussion

This method provides real-time zone duration calculations during an active workout. The durations update as the system processes new samples.

---

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)