Learn to integrate HealthKit in SwiftUI

person icon DevTechie

Learn to integrate HealthKit in SwiftUI

Build health stats app while learning how to query Apple HealthKit Store

updated on icon Updated on Sep, 2023

language icon Language - English

person icon DevTechie

architecture icon Development,Mobile Apps,Swift


30-days Money-Back Guarantee

Training 5 or more people ?

Get your team access to 19,000+ top Tutorialspoint courses anytime, anywhere.

Course Description

Apple introduced HealthKit back in iOS 8 and it has been improving the framework ever since. Apple has introduced many different features and now its supported on all platforms. In Apple's own terms health kit is defined as "HealthKit provides a central repository for health and fitness data on iPhone and Apple Watch. With the user’s permission, apps communicate with the HealthKit store to access and share this data."

SwiftUI makes it easy to develop apps to serve customers. SwiftUI is now in its 3rd iteration and team has been adding new features every single release. SwiftUI is fun way to create user interfaces. It makes it super easy to create UI for your apps that are supported on multiple different platforms.

In this course, we will combine these two powerful technologies together to bring something amazing. We will build a health stats app which will display information about your workout and other health related routines. HealthKit gathers its information from various different ways and stores that information inside HealthKit store on iOS platform. We will build an app that will query this store to pull information out from the store and display them in a much more user friendly way.

You will build a tile view for the app's home page which will list various different categories for stats. Upon selection of those categories, app will take user into detail screen where they will be able to look at past week's stats in a chart view along with a table listing out all the entries.

We will create our own small chart framework that will have capability to capture any kind of data into it and display that data in graphical format. We will build all this while following MVVM design pattern and clean coding style. You will also learn to structure your code for better organizations and we will use repository pattern to pass on aggregated content between views.


What will you learn in this course:

  • HealthKit Integration
  • Query HealthKit Store
  • SwiftUI
  • MVVM


What are the prerequisites for this course?

  • Knowledge of SwiftUI
  • Knowledge of Swift
Learn to integrate HealthKit in SwiftUI


Check out the detailed breakdown of what’s inside the course

2 Lectures
  • play icon Introduction 03:38 03:38
  • play icon App Setup 08:58 08:58
1 Lectures
HealthKit & Repository
2 Lectures
App UI
4 Lectures

Instructor Details



Learn by Doing. Practical Approach to Solve Common Problems

Hello World from DevTechie. We have several years of experience working for big tech companies to small startups with 40+ years of combined experience in developing apps and softwares. We believe in sharing the knowledge gained over the years and would like to invite you to join us in this journey. We cover end to end development for mobile, web, backend as well as data science and machine learning.

Course Certificate

User your certification to make a career change or to advance in your current career. Salaries are among the highest in the world.

sample Tutorialspoint certificate

Our students work
with the Best

Related Video Courses

View More

Annual Membership

Become a valued member of Tutorials Point and enjoy unlimited access to our vast library of top-rated Video Courses

Subscribe now
People having fun around a laptop

Online Certifications

Master prominent technologies at full length and become a valued certified professional.

Explore Now
People having fun around a laptop

Talk to us