Contents

zoneGroup(for:)

Returns a zone group for the specified quantity type.

Declaration

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

Parameters

  • quantityType:

    The quantity type for which to retrieve zone information.

Return Value

The zone group for the quantity type, or nil if no zone information exists for the given type.

See Also

Accessing zone data