Apple Health Frameworks

Nov 29 2022 · Swift 5, iOS 15, Xcode 13

Part 3: Take Advantage of CareKit & ResearchKit

17. Make a Contact Page

Episode complete

Play next episode

Next
About this episode
Leave a rating/review
See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 16. Save Body Temperature Using HealthKit Next episode: 18. Take a Deep Look Into the CareKit

Get immediate access to this and 4,000+ other videos and books.

Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it's simply the best investment you can make in your development career.

Learn more Already a subscriber? Sign in.

Heads up... You’re accessing parts of this content for free, with some sections shown as obfuscated text.

Heads up... You’re accessing parts of this content for free, with some sections shown as obfuscated text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

Part 3, Episode 17, Use CareKit to make a contact page

In this episode, I want to show you how to use another feature from CareKit, which allows you to have a contact page inside your app for quick access if your user needs to contact you.

    makeContacts()
    let contactViewController  = OCKListViewController()
    contactViewController.appendViewController(OCKDetailedContactViewController(contactID: "contact.emad", storeManager: storeManager), animated: false)
    contactViewController.title = "Contact"
    contactViewController.tabBarItem = UITabBarItem(
      title: "Contact",
      image: UIImage(systemName: "list.bullet"),
      tag: 1
    )
    let contactTab = UINavigationController(rootViewController: contactViewController)
    rootController.setViewControllers([planTab, overviewTab, contactTab], animated: false)