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

# taskView(_:didCreateOutcomeValueAt:eventIndexPath:sender:)

Called when an outcome value has been created at a particular index.

## Declaration

```swift
func taskView(_ taskView: UIView & OCKTaskDisplayable, didCreateOutcomeValueAt index: Int, eventIndexPath: IndexPath, sender: Any?)
```

## Parameters

- `taskView`: View displaying the outcome.
- `index`: Index of the new outcome value.
- `eventIndexPath`: Index of the event.
- `sender`: Sender that initiated the outcome value creation.
