Skip to content
Installation

iOS SDK

Install the iOS SDK

Add BTXClientKit with Swift Package Manager and prepare an iOS 17 or newer application.

Requirements

The BTX iOS SDK supports iOS 17 or newer. It is distributed as a Swift Package Manager wrapper around a versioned BTXClientKit XCFramework.

  • Xcode with an iOS 17+ application target.
  • A BTX publishable client key for your project.
  • A stable customer ID available after sign-in.
01

Add the Swift package

  1. 01

    Open package dependencies

    In Xcode, select File → Add Package Dependencies….

  2. 02

    Enter the package URL

    Paste the public BTX package URL into the search field.

    Swift package URL
    https://github.com/secondcontext/btx-ios-sdk.git
  3. 03

    Attach the library

    Choose the BTXClientKit product and attach it to the application target that will configure BTX.

02

Import BTXClientKit

Import the package anywhere you call the public BTX facade.

Swift
import BTXClientKit