---
title: "workoutBuilder(_:didEnd:)"
framework: healthkit
role: symbol
role_heading: Instance Method
path: "healthkit/hkliveworkoutbuilderdelegate/workoutbuilder(_:didend:)"
---

# workoutBuilder(_:didEnd:)

Tells the delegate that the current workout activity has ended.

## Declaration

```swift
optional func workoutBuilder(_ workoutBuilder: HKLiveWorkoutBuilder, didEnd workoutActivity: HKWorkoutActivity)
```

## Parameters

- `workoutBuilder`: The workout builder that received the new activity.
- `workoutActivity`: The workout activity that just ended.

## See Also

### Receiving activity updates

- [workoutBuilder(_:didBegin:)](healthkit/hkliveworkoutbuilderdelegate/workoutbuilder(_:didbegin:).md)
