New Project

This tutorial shows one way to quickly get started using a new or existing Swift iOS project. Before you begin, you should have generated an API key. If not, do this first.

Create your Swift Project

In Xcode, select File > New Project...

1466

Select Single View Application and click next.

1434

Enter your project details. For this tutorial, we'll call the app "NewHealthCo"

Install Medable Cortex iOS SDK

Integrate the SDK following the integration instructions from the README.md file in the SDK repository.

Initialize Medable

Add the Medable start function to your AppDelegate and set the logger level to Debug so you can see more detailed network responses in the console

//AppDelegate.swift

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {

	Medable.start()
	Medable.client().loggerLevel = MDAPIClientNetworkLoggerLevelDebug

	return true
}

Then build and run the app

The app shows a blank screen but you should see proper console outputs

1476

Integration Complete

You've successfully connected to your Medable HIPAA compliant backend. You're ready to collect PHI.


What’s Next