---
title: "dailyPageViewController(_:prepare:for:)"
framework: CareKit
role: symbol
role_heading: Instance Method
platforms: [iOS 13.0+, Mac Catalyst 13.0+, watchOS 7.0+]
path: "carekit/ockdailypageviewcontrollerdatasource/dailypageviewcontroller(_:prepare:for:)"
---

# dailyPageViewController(_:prepare:for:)

Notifies the delegate that the view controller that displays daily tasks is about to be presented.

## Declaration

```swift
func dailyPageViewController(_ dailyPageViewController: OCKDailyPageViewController, prepare listViewController: OCKListViewController, for date: Date)
```

## Parameters

- `dailyPageViewController`: The daily page view controller for which your app provides content.
- `listViewController`: The list view controller that should be populated with content.
- `date`: A date that should be used to determine what content to insert into the list view controller.
