zoneGroup(for:)
Returns the current zone group for the specified quantity type, including real-time duration calculations.
Declaration
func zoneGroup(for quantityType: HKQuantityType) -> HKWorkoutZoneGroup?Parameters
- quantityType:
The quantity type to retrieve zone information for.
Return Value
The zone group with current time-in-zone data, or nil if no zone information is available.