---
title: "init(activityType:startDate:endDate:)"
framework: healthkit
role: symbol
role_heading: Initializer
path: "healthkit/hkworkout/init(activitytype:startdate:enddate:)"
---

# init(activityType:startDate:endDate:)

## Declaration

```swift
convenience init(activityType workoutActivityType: HKWorkoutActivityType, startDate: Date, endDate: Date)
```
