Prerequisites
To use Para, you need an API key. This key authenticates your requests to Para services and is essential for integration.Install the SDK
Add the Para Swift SDK Package
- In your Xcode project, go to File > Add Packages or (in your target) Frameworks, Libraries, and Embedded Content and click +.
- Enter
https://github.com/getpara/swift-sdk - Select Up to Next Major Version and enter
2.0.0 - Add the package to your app target and click Add Package.
- BigInt: For handling large numbers in blockchain operations
- PhoneNumberKit: For phone number validation and formatting
Configure Associated Domains for Passkeys
To enable passkeys on iOS, you need to configure Associated Domains:
- In Xcode, go to Signing & Capabilities for your app target
- Click + Capability and add Associated Domains
- Add the following entries:
- Register your Team ID + Bundle ID with Para via the
Heading to App Review? Check for Sign in with Apple, reviewer, and deletion tips.
Configure URL Scheme
Before initializing Para, you need to configure your app’s URL scheme for deep linking. This is required for theappScheme parameter and enables OAuth authentication flows.
Initialize Para
To use Para’s features, you’ll need to initialize a Para manager that can be accessed throughout your app. This manager handles all interactions with Para’s services, including authentication, wallet management, and transaction signing. Below is an example of initializing the SDK in a SwiftUI application:App.swift
The
appScheme parameter must match the URL scheme you configured in your Info.plist. This enables deep linking for external wallet integrations like MetaMask and OAuth authentication flows.