Contents

initiateDeletionForOutcomeValue(atIndex:eventIndexPath:deletionCompletion:)

Returns an alert controller with localized text, that confirms deleting an outcome.

Declaration

func initiateDeletionForOutcomeValue(atIndex index: Int, eventIndexPath: IndexPath, deletionCompletion: ((Result<OCKAnyOutcome, Error>) -> Void)?) throws -> UIAlertController

Parameters

  • index :

    The location in an array of outcome values.

  • eventIndexPath :

    The section and row of the event.

  • deletionCompletion :

    A completion handler that the function calls when the store deletes the outcome.

See Also

Handling Task Selection