Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support state restoration with ORKOrderedTaskView #22

Open
1 task done
Supereg opened this issue Mar 6, 2024 · 0 comments
Open
1 task done

Support state restoration with ORKOrderedTaskView #22

Supereg opened this issue Mar 6, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Supereg
Copy link
Member

Supereg commented Mar 6, 2024

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
@Supereg Supereg added the enhancement New feature or request label Mar 6, 2024
@PSchmiedmayer PSchmiedmayer added the good first issue Good for newcomers label Mar 6, 2024
@PSchmiedmayer PSchmiedmayer moved this to Backlog in Project Planning Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants