-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Use CareKit 3.0.0 #116
Use CareKit 3.0.0 #116
Conversation
} | ||
guard careViewController.store !== appDelegate.storeCoordinator else { | ||
// No need to replace view | ||
// careViewController.events = events |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commented out this line to prevent app crashing in Xcode 14.3 due to SwiftUI card and UIKit cards streaming in the same view but called on different queues, resulting in: error: NULL _cd_rawData but the object is not being turned into a fault CoreData: error: NULL _cd_rawData but the object is not being turned into a fault
event.computeProgress(by: .checkingOutcomeExists) | ||
}) { | ||
super.init(store: store, computeProgress: computeProgress) | ||
// self.events = events |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the other line commented out due to app crash, uncomment both lines to re-enable Steps card
A nice code snippet that can be used in the future for streaming
CareKitStore
data in a View Model to a View is below: