---
title: "init(storeManager:adherenceAggregator:)"
framework: CareKit
role: symbol
role_heading: Initializer
platforms: [iOS 13.0+, Mac Catalyst 13.0+, watchOS 7.0+]
path: "carekit/ockdailytaskspageviewcontroller/init(storemanager:adherenceaggregator:)"
---

# init(storeManager:adherenceAggregator:)

Create an instance of the view controller. Will hook up the calendar to the tasks collection, and query and display the tasks.

## Declaration

```swift
override init(storeManager: OCKSynchronizedStoreManager, adherenceAggregator: OCKAdherenceAggregator = super)
```

## Parameters

- `storeManager`: The store from which to query the tasks.
- `adherenceAggregator`: An aggregator that will be used to compute the adherence values shown at the top of the view.
