Quick Start - iOS

Get UXCam running in your iOS app in 5 minutes

iOS Quick Start

Get session recording working in your iOS app in under 5 minutes.

Prerequisites

  • Xcode
  • iOS deployment target 12.0+
  • A UXCam account with an app key

Step 1: Add the Dependency

CocoaPods

Add to your Podfile:

pod 'UXCam'

Then run:

pod install

Swift Package Manager

Add this URL in Xcode: https://github.com/uxcam/uxcam-ios-sdk


Step 2: Initialize UXCam

In your AppDelegate:

import UXCam

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

    let config = UXCamConfiguration(appKey: "YOUR_APP_KEY")
    UXCam.optIntoVideoRecordings()
    UXCam.start(with: config)

    return true
}
Objective-C version
#import <UXCam/UXCam.h>

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

    UXCamConfiguration *config = [[UXCamConfiguration alloc] initWithAppKey:@"YOUR_APP_KEY"];
    [UXCam optIntoVideoRecordings];
    [UXCam startWithConfiguration:config];

    return YES;
}

Note

SwiftUI? Check our dedicated SwiftUI integration guide for SwiftUI-specific setup.


Step 3: Verify It Works

  1. Run your app on a simulator or device
  2. Navigate through a few screens
  3. Send the app to background
  4. Check your UXCam Dashboard - your session should appear within 30 seconds

Tip

Set config.enableIntegrationLogging = true to see UXCam debug logs in Xcode console.


Next Steps

You're recording sessions! Now customize your integration:


What's Next? ...