StanfordBDHG/ResearchKit

Support state restoration with ORKOrderedTaskView

Open

#22 创建于 2024年3月6日

在 GitHub 查看
 (0 评论) (1 反应) (0 负责人)Objective-C (3 fork)auto 404
enhancementgood first issue

仓库指标

Star
 (12 star)
PR 合并指标
 (PR 指标待抓取)

描述

Problem

Within the ResearchKitSwiftUI target we implement the ORKOrderedTaskView to natively use the ORKTaskViewController within SwiftUI environments. Basic functionality is supported by the ORKOrderedTaskView.

A handy feature supported by the ORKTaskViewController is to initialize the view controller with restoration data (see initWithTask:restorationData:delegate:.

Solution

The ORKOrderedTaskView should support to declare support for save and restore (see taskViewControllerSupportsSaveAndRestore:) and forward the restoration Data to the result closure respectively. Additionally ORKOrderedTaskView should receive an additional initializer (argument) to be initialized from a given Blob of restoration data.

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct and Contributing Guidelines

贡献者指南