---
title: zoneGroupsByType
framework: healthkit
role: symbol
role_heading: Instance Property
path: healthkit/hkworkout/zonegroupsbytype
---

# zoneGroupsByType

A property that contains a dictionary that maps quantity types to their zone groups for this workout.

## Declaration

```swift
var zoneGroupsByType: [HKQuantityType : HKWorkoutZoneGroup]? { get }
```

## Mentioned in

Accessing workout zone data

## Discussion

Discussion This property provides zone data for the workout’s primary activity, covering the full workout duration. Access zone groups for individual activities using zoneGroupsByType.
