# ClinicKit Integration URL: https://developers.vsee.com/guides/clinickit/ios-integration ClinicKit for iOS is made of two frameworks: **VSeeKit**, which handles video calls, and **VSeeClinicCore**, which provides the clinic, authentication, intake and visit services on top of it. ### Downloads 1. [VSeeKit framework](https://bitbucket.org/vsee/vseekit-ios) 2. [VSeeClinicCore framework](https://bitbucket.org/vsee/vseeclinickitcore-ios/src/master/) 3. [VSeeClinicUIKit framework](https://bitbucket.org/vsee/vseeclinicuikit-ios) 4. [Sample app for iOS](https://bitbucket.org/vsee/vseeclinickit-ios/src/1b6f49d89851a67c3fa36d10a9b9518a3e3d39a4/?at=release%2F1.0) ### VSeeKit framework The VSeeKit iOS framework lets you embed VSee functionality in your iOS app. It supports multi-way video calling and chat, with UIs tailored for iPhone and iPad in portrait or landscape orientation. VSeeKit currently requires iOS 11 or later. Going forward, VSeeKit will always support at least one major release before the current version of iOS. #### Download and prepare the framework 1. Download the VSeeKit framework from its [code repository](https://bitbucket.org/vsee/vseekit-ios). 2. Prepare the frameworks and libraries it depends on. VSeeKit requires Xcode 11 and supports iOS 11 and newer. It is packaged as a static framework rather than a dynamic one. Besides the VSeeKit framework, your project must link with these system frameworks and libraries: - Accelerate.framework - AudioToolbox.framework - AVFoundation.framework - CFNetwork.framework - CoreGraphics.framework - CoreMedia.framework - Foundation.framework - Security.framework - SystemConfiguration.framework - UIKit.framework - VideoToolbox.framework - libc++.tbd - libicucore.tbd - libresolv.tbd - libz.tbd VSeeKit also includes a bundle of resources that must sit at the top level of your app: add `VSeeKit.bundle` to the **Copy Bundle Resources** phase of your app's build target. Under **Build Phases** in Xcode, your target should look like this: ![Link Binary With Libraries, listing VSeeKit.framework and the required system frameworks](https://developers.vsee.com/images/guides/clinickit/ios-integration/vseekit-link-binary.png) ![Copy Bundle Resources, listing VSeeKit.bundle](https://developers.vsee.com/images/guides/clinickit/ios-integration/vseekit-copy-bundle.png) ### VSeeClinicCore framework The VSeeClinicCore framework provides the functions and support classes for building healthcare apps on iOS. It needs the VSeeKit framework installed to make video calls. #### Step 1: Download the framework Download the VSeeClinicCore framework from its [code repository](https://bitbucket.org/vsee/vseeclinickitcore-ios/src/master/). #### Step 2: Add the framework to your project 1. Open your project in Xcode. 2. Drag the VSeeClinicCore framework into the Project Navigator (the left column in Xcode). 3. In the **Add to targets** dialog, select the targets that will use the framework, then click **Add**. #### Step 3: Configure build phases 1. Select your project's target in the Project Navigator. 2. Select the **Build Phases** tab. 3. Expand **Link Binary With Libraries** to see the frameworks and libraries linked to your project. 4. Click **+** to add a framework. 5. Choose **Add Other**, find and select the VSeeClinicCore framework you added to your project, and click **Add**. 6. Check that VSeeClinicCore.framework is now listed under **Link Binary With Libraries**. 7. Add the `VSeeClinicCore.bundle` file to **Copy Bundle Resources**. ![Copy Bundle Resources, listing VSeeClinicCore.bundle](https://developers.vsee.com/images/guides/clinickit/ios-integration/vseeclinicore-copy-bundle.png) ![Link Binary With Libraries, listing VSeeClinicCore.framework](https://developers.vsee.com/images/guides/clinickit/ios-integration/vseeclinicore-link-binary.png) #### Step 4: Install dependencies VSeeClinicCore needs these CocoaPods dependencies: 1. Open your project's `Podfile`. 2. Add these lines: ```ruby pod 'MagicalRecord' pod 'UICKeyChainStore', '~> 2.1.0' pod 'GBDeviceInfo', '~> 4.2.2' pod 'NSDictionary+SafeGetters' pod 'AFNetworking', '~> 4.0' pod 'SDWebImage', '~> 4.4.2' pod 'Stripe', '~> 14.0.2' pod 'MBProgressHUD', '~> 1.0.0' ``` 3. Save the `Podfile`. 4. In Terminal, go to your project's directory and run: ```bash pod install ``` 5. Wait for the dependencies to download and install. 6. Close your Xcode project and open the newly generated `.xcworkspace` file. 7. Build and run your project. #### Step 5: Use the framework in your code Import VSeeClinicCore in your source files, then use its classes and functions like any other in your project: ```swift import VSeeClinicCore ``` #### Step 6: Get a VSeeKit key If you don't have a VSeeKit API key, [contact VSee Sales](https://vsee.com/contactsales) for a free trial key. #### Step 7: Get a VSee Clinic API key Create an API key for your app in the clinic admin dashboard. See [Generate your API key](https://developers.vsee.com/guides/clinickit/getting-started#step-4-generate-your-api-key). Then put your keys in your [App Settings](https://developers.vsee.com/guides/clinickit/ios-app-settings). ### Example usage The [sample app repository](https://bitbucket.org/vsee/vseeclinickit-ios/src) shows the frameworks in use. VSeeClinicCore provides services for user authentication, appointment management and communication with healthcare providers. With it you can let users schedule appointments, join virtual visits, and track upcoming appointments and visit history. These pages describe the key services: - [Authentication API](https://developers.vsee.com/guides/clinickit/ios-authentication-api) - [Clinic & Room API](https://developers.vsee.com/guides/clinickit/ios-clinic-room-api) - [Intake & Visit API](https://developers.vsee.com/guides/clinickit/ios-intake-visit-api) - [App Settings](https://developers.vsee.com/guides/clinickit/ios-app-settings)