Prerequisites
To use Para, you need an API key. This key authenticates your requests to Para services and is essential for integration.Don’t have an API key yet? Request access to the Developer Portal to create API keys, manage billing, teams, and more.
Install the SDK
1
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 Branch and enter
2.0.0-alpha - 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
2
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 Developer Portal
Without properly registering your Team ID and Bundle ID with Para, passkey authentication flows will fail. Contact Para support if you encounter issues with passkey registration.
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.
1
Add URL Scheme in Xcode
- In Xcode, select your project in the navigator
- Select your app target
- Go to the Info tab
- Scroll down to URL Types and click + to add a new URL type
- Fill in the fields:
- URL Schemes: Enter your scheme name (e.g.,
paraswift,yourapp) - Role: Select Editor
- URL Schemes: Enter your scheme name (e.g.,
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.