Contents

setCustomZoneConfiguration(_:for:)

Sets the zone configuration for the specified quantity type for this workout. In order to provide a custom workout zone configuration, this must be called before beginning collection on the builder. If a custom configuration is not provided, the user’s preferred workout zone configuration will be used for zone calculations.

Declaration

func setCustomZoneConfiguration(_ configuration: HKWorkoutZoneConfiguration?, for quantityType: HKQuantityType) async throws

Parameters

  • configuration:

    The zone configuration to use. Setting to nil will remove any custom configuration and use the preferred zone configuration for the quantity type.

  • quantityType:

    The quantity type to apply the configuration to.

Mentioned in

Discussion

See Also

Configuring zone data