Skip to main content

Overview

The Encore SDK is distributed as a public Swift Package. No access token or authentication is required — add it straight from GitHub via Swift Package Manager. The repository URL is:

Requirements

RequirementMinimum
iOS deployment targetiOS 15.0+
Xcode15.0+ (Swift 5.9+)
The SDK installs and runs on iOS 15+. The offer sheet UI is built with SwiftUI sheets and renders on iOS 17+. On iOS 15–16, calls to placement(_:).show() resolve immediately with NotGrantedReason.unsupportedOS instead of presenting UI, so your onPassthrough handler still runs and the user is never blocked.

Install via Swift Package Manager

Swift Package Manager is Apple’s official dependency manager, integrated into Xcode.

Option A — Add in Xcode

1

Open Add Package Dependencies

In Xcode, select File ▸ Add Package Dependencies…
2

Paste the repository URL

Paste the public repository URL into the search field:
Press Return — the package resolves automatically.
3

Set the dependency rule

Set Dependency Rule to Up to Next Major Version with a lower bound of 1.0.0, then click Add Package.
4

Add to your target

Ensure the Encore library is added to your app’s target, then click Add Package.

Option B — Package.swift

If you manage dependencies in a Package.swift manifest, add Encore to your dependencies and to your target:

Verify Installation

You should now be able to import the SDK:
Installation complete.

Next Steps

Now that the SDK is installed, continue with the integration: For advanced features and complete API documentation, see the SDK Reference.

Already Installed?

If you’ve already installed the SDK and need to update to a newer version, see Updating the SDK.