Public beta release - SwiftUI#1585
Public beta release - SwiftUI#1585simon-apple merged 1 commit intoResearchKit:dev/SwiftUIfrom simon-apple:publicBetaRelease/SwiftUI
Conversation
jessi-apple
left a comment
There was a problem hiding this comment.
Can't wait for people to check this out! 🚀 Looks great ✅
|
Any desire to expose this as a Swift Package to make adoption easier? Is this intended to be iOS 18+? I noticed the use of the new Group initializer added in iOS 18, this will be very limiting to teams that need to support a few earlier versions. |
|
Hi there @SwiftNativeDeveloper! Thank you for checking out our beta release of ResearchKit SwiftUI. We do have plans to release a Swift Package once we move closer to release. Currently, we are still in beta. We are also aware that currently this work requires iOS 18 APIs—this is part of why we are still in beta. We will be working to determine other ways to architect the API for backwards OS version compatibility. Thank you again for your feedback! |
ResearchKit SwiftUI
We are excited to announce the release of a new beta API for surveys in ResearchKit. This API is designed to enhance the flexibility, customization, and cross-platform compatibility of surveys in your ResearchKit apps. Below are the key features and usage details.
New Form APIs offer an easily configurable and flexible UI, with the same look and feel of
ORKFormStep:ResearchFormResearchFormStepResearchFormCompletionResearchFormResultStepHeaderQuestionHeaderInstructionBodyItemquestionRequired(ViewModifier)Survey Question Types:
MultipleChoiceQuestionHeightQuestionWeightQuestionSliderQuestionTextQuestionDateTimeQuestionNumericQuestionImageChoiceQuestionThe example below shows how to create a
ResearchFormto present a text question for the participant to answer, and then save their results.Install as an embedded framework
Download the project source code and drag in the ResearchKitSwiftUI folder. In the dialog that pops up, choose to copy files to destination and create folders. Then hit the finish button. Finally, embed the ResearchKitSwiftUI framework in your app by adding it to the "Frameworks, Libraries, and Embedded Content" section for your target.