---
title: "zoneGroup(for:)"
framework: healthkit
role: symbol
role_heading: Instance Method
path: "healthkit/hkworkoutbuilder/zonegroup(for:)"
---

# zoneGroup(for:)

Returns the current zone group for the specified quantity type, including real-time duration calculations.

## Declaration

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

## Parameters

- `quantityType`: The quantity type to retrieve zone information for.

## Return Value

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