zoneConfiguration(for:)
Returns the zone configuration for the specified quantity type.
Declaration
func zoneConfiguration(for quantityType: HKQuantityType) async throws -> HKWorkoutZoneConfiguration?Parameters
- quantityType:
The quantity type for which to retrieve the configuration.
Return Value
The zone configuration, or nil if no configuration exists for the quantity type.
Discussion
This method returns any custom configuration set with setCustomZoneConfiguration(_:for:), or the person’s preferred configuration if no custom configuration has been set.