---
title: "taskView(_:didCompleteEvent:at:sender:)"
framework: CareKit
role: symbol
role_heading: Instance Method
platforms: [iOS 13.0+, Mac Catalyst 13.0+, watchOS 7.0+]
path: "carekit/ocktaskviewcontroller/taskview(_:didcompleteevent:at:sender:)"
---

# taskView(_:didCompleteEvent:at:sender:)

Called when an event is completed.

## Declaration

```swift
func taskView(_ taskView: UIView & OCKTaskDisplayable, didCompleteEvent isComplete: Bool, at indexPath: IndexPath, sender: Any?)
```

## Parameters

- `taskView`: View displaying the event.
- `isComplete`: True if the event is complete.
- `indexPath`: Index path of the event.
- `sender`: Sender that initiated the completion.
