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...

Select Single View Application
and click next.

Enter your project details. For this tutorial, we'll call the app "NewHealthCo"
Install Medable iOS SDK
Follow the step by step instructions: iOS SDK Installation
OR
Just ensure you have the following
1. Medable Cocoapod Installed
You're working from the .xcworkspace
2. Objective-C Bridging Header
This file contains #import <Medable/Medable.h>
3. Info.plist Entry
Should look like below. Except your ClientKey and Organization values will be different from this example.

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

Integration Complete
You've successfully connected to your Medable HIPAA compliant backend. You're ready to collect PHI.
Updated 4 months ago