Contents

workoutBuilder(_:didUpdateWorkoutZone:)

Tells the delegate that the person changed zones during the workout.

Declaration

optional func workoutBuilder(_ workoutBuilder: HKLiveWorkoutBuilder, didUpdateWorkoutZone zoneUpdate: HKLiveWorkoutZoneUpdate)

Parameters

  • workoutBuilder:

    The live workout builder instance.

  • zoneUpdate:

    Details about the zone transition and current state.

Mentioned in

Discussion

The system calls this method when the person moves between zones. Use this method to update your app’s interface to reflect the current zone or to provide feedback about zone changes.