---
title: "makeOutcomeFor(event:withValues:)"
framework: CareKit
role: symbol
role_heading: Instance Method
platforms: [iOS 13.0+, Mac Catalyst 13.0+, watchOS 7.0+]
path: "carekit/ocktaskcontroller/makeoutcomefor(event:withvalues:)"
---

# makeOutcomeFor(event:withValues:)

Creates and returns an outcome for a specific event.

## Declaration

```swift
func makeOutcomeFor(event: OCKAnyEvent, withValues values: [OCKOutcomeValue]) throws -> OCKAnyOutcome
```

## Parameters

- `event  `: The event object to create outcome values for.
- `values  `: The outcome values for the event.

## See Also

### Handling Task Selection

- [appendOutcomeValue(withType:at:completion:)](carekit/ocktaskcontroller/appendoutcomevalue(withtype:at:completion:).md)
- [eventFor(indexPath:)](carekit/ocktaskcontroller/eventfor(indexpath:).md)
- [initiateDetailsViewController(forIndexPath:)](carekit/ocktaskcontroller/initiatedetailsviewcontroller(forindexpath:).md)
- [initiateDeletionForOutcomeValue(atIndex:eventIndexPath:deletionCompletion:)](carekit/ocktaskcontroller/initiatedeletionforoutcomevalue(atindex:eventindexpath:deletioncompletion:).md)
- [setEvent(atIndexPath:isComplete:completion:)](carekit/ocktaskcontroller/setevent(atindexpath:iscomplete:completion:).md)
