---
title: "updateAnyView(_:context:)"
framework: CareKit
role: symbol
role_heading: Instance Method
platforms: [iOS 13.0+, Mac Catalyst 13.0+, watchOS 7.0+]
path: "carekit/ockgridtaskviewsynchronizer/updateanyview(_:context:)"
---

# updateAnyView(_:context:)

Update a view using the given context

## Declaration

```swift
func updateAnyView(_ view: UIView & OCKTaskDisplayable, context: OCKSynchronizationContext<OCKTaskEvents?>)
```

## Parameters

- `view`: The view to be updated
- `context`: Information about the update that is occurring.
