setEvent(atIndexPath:isComplete:completion:)
Sets a specific event for a task view controller, and creates an outcome value if the task is complete.
Declaration
func setEvent(atIndexPath indexPath: IndexPath, isComplete: Bool, completion: ((Result<OCKAnyOutcome, Error>) -> Void)?)Parameters
- indexPath :
The position in the task collection view.
- isComplete:
A Boolean value that indicates whether the event is compete. If you pass true, this function will create an outcome and save it to the store.
- completion :
A completion handler the function calls when it is done.