Overview
The Encore iOS SDK lets your app present premium brand offers, real perks funded by brands, at the moments you choose. It is distributed as a public Swift Package: no access token or authentication is required, and you add it straight from GitHub via Swift Package Manager. The repository URL is:Requirements
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 .notPresented(.unsupportedOS) instead of presenting UI, so your fallback branch 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 2.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: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