You can download the completed project for this tutorial here.
I encourage you to experiment with other properties of ORKActiveStep in this project to see easy it can be to customize a Step within ResearchKit. Check out the full list in the RestKit documentation here.
If you need a refresher on working with JSON in Swift, see Working with JSON in Swift. You’ll likely be doing quite a bit more of this in your ResearchKit apps.
Beyond the framework, you can look into useful extensions to ResearchKit in the form of CardioHealth, an app developed with Stanford to study cardiovascular disease, and AppCore, which is shared code among all the launch apps. I recommend you take a look at how tasks are created in those projects, and use that behavior as a model.
Thanks for reading; please comment below, and I hope to see more ResearchKit success stories!
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.