Skip to content

Commit

Permalink
feat: Update OCKSurveyTaskViewController to support ResearchKit 3.0 (#…
Browse files Browse the repository at this point in the history
…711)

* feat: Update OCKSurveyTaskViewController to support ResearchKit 3.0

* import ResearchKitUI

* support old and new ResearchKit

* Update CareKit/CareKit/iOS/Task/View Controllers/OCKSurveyTaskViewController.swift

Co-authored-by: ronzilla-apple <[email protected]>

* revert

* nit

* nit

---------

Co-authored-by: ronzilla-apple <[email protected]>
  • Loading branch information
cbaker6 and ronzilla-apple authored Mar 28, 2024
1 parent 5288dce commit c4c2a56
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
import CareKitStore
import CareKitUI
import ResearchKit
#if canImport(ResearchKitUI)
import ResearchKitUI
public typealias ORKTaskViewControllerFinishReason = ORKTaskFinishReason
#endif
import UIKit

// MARK: OCKSurveyTaskViewControllerDelegate
Expand Down Expand Up @@ -191,7 +195,7 @@ open class OCKSurveyTaskViewController: OCKTaskViewController<OCKSurveyTaskViewS
}

// MARK: ORKTaskViewControllerDelegate

open func taskViewController(
_ taskViewController: ORKTaskViewController,
didFinishWith reason: ORKTaskViewControllerFinishReason,
Expand Down

0 comments on commit c4c2a56

Please sign in to comment.