-
-
Notifications
You must be signed in to change notification settings - Fork 0
Localized Metadata #24
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
base: main
Are you sure you want to change the base?
Changes from all commits
548b7a4
2e7644a
a20bd2e
0c30209
b81e3d3
e641ed5
fc1e5fa
ed54927
6af51ea
f9aba6e
894e783
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,8 +45,10 @@ extension StudyDefinition { | |
| case healthDataCollection(HealthDataCollectionComponent) | ||
| /// A component that prompts the participant to perform a Timed Walking Test. | ||
| case timedWalkingTest(TimedWalkingTestComponent) | ||
| #if canImport(Darwin) | ||
| /// A component that prompts the participant to perform a custom Active Task. | ||
| case customActiveTask(CustomActiveTaskComponent) | ||
| #endif | ||
|
Comment on lines
+48
to
+51
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why is this Darwin-only? wouldn't that break all studies that use active tasks, when running on linux?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The issue is that CustomActiveTaskComponent essentially is a composition of two LocalizedStringResources |
||
|
|
||
| /// The components `id`, uniquely identifying it within the ``StudyDefinition``. | ||
| public var id: UUID { | ||
|
|
@@ -59,16 +61,22 @@ extension StudyDefinition { | |
| component.id | ||
| case .timedWalkingTest(let component): | ||
| component.id | ||
| #if canImport(Darwin) | ||
| case .customActiveTask(let component): | ||
| component.id | ||
| #endif | ||
| } | ||
| } | ||
|
|
||
| /// The Component's kind | ||
| public var kind: Kind { | ||
| switch self { | ||
| case .informational, .questionnaire, .timedWalkingTest, .customActiveTask: | ||
| case .informational, .questionnaire, .timedWalkingTest: | ||
| .userInteractive | ||
| #if canImport(Darwin) | ||
| case .customActiveTask: | ||
| .userInteractive | ||
| #endif | ||
| case .healthDataCollection: | ||
| .internal | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.