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

# workoutBuilder(_:didCollectDataOf:)

Tells the delegate that new data has been added to the builder.

## Declaration

```swift
func workoutBuilder(_ workoutBuilder: HKLiveWorkoutBuilder, didCollectDataOf collectedTypes: Set<HKSampleType>)
```

## Mentioned in

Running workout sessions
