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

# init(storeManager:adherenceAggregator:)

Creates a view controller that contains a synchronized calendar with a tasks collection.

## Declaration

```swift
init(storeManager: OCKSynchronizedStoreManager, adherenceAggregator: OCKAdherenceAggregator = .compareTargetValues)
```

## Parameters

- `storeManager`: The store you query for tasks.
- `adherenceAggregator`: An enumerator that specifies the methods with which to compute an adherence value, given an array of events.
