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

# init(query:storeManager:)

Initialize a view controller that displays a contact. Fetches and stays synchronized with the contact.

## Declaration

```swift
convenience init(query: OCKAnyContactQuery, storeManager: OCKSynchronizedStoreManager)
```

## Parameters

- `query`: Used to fetch the contact to display.
- `storeManager`: Wraps the store that contains the contact to fetch.
