You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cannot find a way to add an image to an OCKChecklistTaskViewController card. In the attachment, the top portion above the instructions and label is light gray- this is where the image should go.
The text was updated successfully, but these errors were encountered:
We should tweak CareKit to display the task's asset in this view by default.
In the meantime, you can set the image to whatever you'd like by subclassing the view controller.
classMyTaskViewController:OCKChecklistTaskViewController{/// Create a detail view that displays information about a task./// - Parameter indexPath: Index path of the event whose task should be displayed.overridefunc initiateDetailsViewController(forIndexPath indexPath:IndexPath)throws->OCKDetailViewController{letdetailViewController= super.initiateDetailsViewController(forIndexPath: indexPath)
detailViewController.detailsView.imageView.image =/* Anything you want */
return detailViewController
}}
I cannot find a way to add an image to an OCKChecklistTaskViewController card. In the attachment, the top portion above the instructions and label is light gray- this is where the image should go.
The text was updated successfully, but these errors were encountered: