Contents

smartlook/analytics-swift-package

Welcome to the official Smartlook Swift package for the Smartlook Analytics iOS SDK.

iOS SDK Setup

To start recording user sessions, Smartlook must be imported and configured. If you have not installed the SDK yet, see iOS SDK installation.

To set up the Smartlook Analytics iOS SDK, you need your unique project key. If you do not know your project key, see Installing Smartlook code.

An example of SDK setup using AppDelegate and the didFinishLaunching method:

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

    // Configure SDK to use your unique project key
    Smartlook.instance.preferences
        .projectKey("ecfb2b2cc13a13b0be2de6b60acf99..........")

    // Start SDK
    Smartlook.instance.start()

    return true
}

Next steps

Package Metadata

Repository: smartlook/analytics-swift-package

Default branch: main

README: README.md