---
title: "beginCollection(withStart:completion:)"
framework: healthkit
role: symbol
role_heading: Instance Method
path: "healthkit/hkworkoutbuilder/begincollection(withstart:completion:)"
---

# beginCollection(withStart:completion:)

Sets the workout’s start date and begins building the workout.

## Declaration

```swift
func beginCollection(withStart startDate: Date, completion: @escaping @Sendable (Bool, (any Error)?) -> Void)
```

```swift
func beginCollection(at startDate: Date) async throws
```

## See Also

### Starting the workout

- [startDate](healthkit/hkworkoutbuilder/startdate.md)
- [elapsedTime(at:)](healthkit/hkworkoutbuilder/elapsedtime(at:).md)
