Introduction
1 min read
The Swift SDK adds the Footprint onboarding flow to your iOS app.
Minimum version requirements
The Swift SDK requires a minimum deployment target of 14.0 or above. Older targets can cause unexpected issues or stop the package from working.
The flow opens in the device browser and does not load on versions older than those listed under Browser support.
Installation
Swift Package Manager
Add the Footprint package to the dependencies in your Package.swift:
swift
Replace
<VERSION> with a version number. We recommend the latest published version; the Swift Package Index lists them.
You can also install Footprint through the Swift Package Index, or in Xcode through File > Add Package Dependencies... by searching for "Footprint".
CocoaPods
To add FootprintSwift to your Xcode project with CocoaPods, specify it in your Podfile:
ruby1pod 'FootprintOnboardingComponents', :git => 'https://github.com/onefootprint/Swift-Onboarding-Components.git'
Next steps
- Onboarding (KYC/KYB) starts an onboarding from your app and handles the validation token it returns.