CareKit icon indicating copy to clipboard operation
CareKit copied to clipboard

`OCKTaskController` provide method to add an `OCKOutcomeValue`

Open wmalloc opened this issue 4 years ago • 1 comments

currently the API provides

    open func appendOutcomeValue(
        value: OCKOutcomeValueUnderlyingType,
        at indexPath: IndexPath,
        completion: ((Result<OCKAnyOutcome, Error>) -> Void)?) {

I create custom OCKOutcomeValue and would like a method with signature

    open func appendOutcomeValue(
        value: OCKOutcomeValue,
        at indexPath: IndexPath,
        completion: ((Result<OCKAnyOutcome, Error>) -> Void)?) {

wmalloc avatar May 25 '21 05:05 wmalloc

I would recommend creating that method yourself by writing an extension in your app's code. You can reference the implementation of the existing method for guidance.

erik-apple avatar Jun 11 '21 14:06 erik-apple