Prerequisites: minimum supported iOS version is 11.0.

Import kevin. iOS dependency:

  1. In Xcode, select File > Swift Packages > Add Package Dependency and enter as the repository URL.

  2. Select the most recent version of the SDK.

  3. Add the kevin. product to the target of your application

Latest SDK version can be found here.

Initialize plugins you will use in the SwiftUI App or AppDelegate. Check our customizations section for a guide on how to customise the SDK UI.

import SwiftUI
import Kevin

struct KevinDemoApp: App {
    init() {
        //  setup your custom theme which extends KevinTheme
        Kevin.shared.theme = KevinTheme()
        //  set optional locale, default is English locale
        Kevin.shared.locale = Locale(identifier: "en")
        //  initialize required plugins with your callback urls
                callbackUrl: URL(string: "https://your.callback.url")!
                callbackUrl: URL(string: "https://your.callback.url")!

Last updated