Skip to content

Swift SDK

The AudienceKit Swift package is a placeholder for the native client. Today it exposes only AudienceKit.version; the Hot Mess iOS app still calls the API with its own networking code.

Requires Swift 6.0 or newer, iOS 16 or macOS 13.

The package manifest is Package.swift at the root of the AudienceKit repository, so add the repository itself with Swift Package Manager:

.package(url: "https://github.com/audience-kit/audience-kit.git", branch: "master")

Then depend on the AudienceKit product:

.target(name: "MyApp", dependencies: [.product(name: "AudienceKit", package: "audience-kit")])

The sources are in sdk/swift/. From the repository root:

Terminal window
swift build
swift test