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

# zoneConfiguration(for:)

Returns the zone configuration for the specified quantity type.

## Declaration

```swift
func zoneConfiguration(for quantityType: HKQuantityType) async throws -> HKWorkoutZoneConfiguration?
```

## Parameters

- `quantityType`: The quantity type for which to retrieve the configuration.

## Return Value

Return Value The zone configuration, or nil if no configuration exists for the quantity type.

## Discussion

Discussion This method returns any custom configuration set with setCustomZoneConfiguration(_:for:), or the person’s preferred configuration if no custom configuration has been set.

## See Also

### Configuring zone data

- [setCustomZoneConfiguration(_:for:)](healthkit/hkworkoutbuilder/setcustomzoneconfiguration(_:for:).md)
