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

# zoneGroup(for:)

Returns a 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 for the quantity type, or `nil` if no zone information exists for the given type.

---

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)