---
title: "init(type:value:startDate:endDate:)"
framework: healthkit
role: symbol
role_heading: Initializer
path: "healthkit/hkcategorysample/init(type:value:startdate:enddate:)"
---

# init(type:value:startDate:endDate:)

## Declaration

```swift
convenience init(type: HKCategoryType, value: Int, startDate: Date, endDate: Date)
```
