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
| Requirement | Minimum |
|---|---|
| iOS deployment target | iOS 15.0+ |
| Xcode | 15.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
Paste the repository URL
Paste the public repository URL into the search field:Press Return — the package resolves automatically.
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.
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:Next Steps
Now that the SDK is installed, continue with the integration:- Configure the SDK - Set up your API key and initialize Encore
- Identify Users - Learn how to identify users for offer tracking