Consent process
So far, we have explored the steps of the consent process as individual ResearchKit tasks. Outside of the learning environment, the steps on the consent process will constitute one ResearchKit task. Assuming the earlier definition of the consent steps, they may be presented as one ResearchKit task, as follows:
let steps = [visualConsentStep, sharingConsentStep, reviewConsentStep] let task = ORKOrderedTask(identifier: "ConsentTask", steps: steps) let taskViewController = ORKTaskViewController(task: task, taskRunUUID: nil) taskViewController.delegate = selfpresentViewController(taskViewController, animated: true, completion: nil)