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

# zoneGroupsByType

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

## Declaration

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

## Mentioned in

Accessing workout zone data

## Discussion

Discussion This property provides zone data specific to the activity’s time range within the workout.
