Platforms
iOS
Embed the account connection flow in your iOS app
Getting Started
You can get started with a SwiftUI example here.
You can embed the account connection flow in your iOS app using the Swift Package Manager (SPM).
To integrate Anon using Swift Package Manager, you’ll need Swift version 5.3 or later. Follow these steps within your Xcode project:
- Go to File > Add Package Dependencies.
- Enter the Anon package URL in the search bar: https://github.com/anon-dot-com/sdk-ios-pkg
- Choose the
sdk-ios-pkg
package. - Select the AnonKit package product and click
Add Package
.
Do the same with the following package: https://github.com/auth0/JWTDecode.swift
Import AnonKit SDK
You can proceed to initialize the AnonKit SDK. This step is critical to starting your application’s interaction with the SDK.
Here’s an example of using the SDK in a modal view using SwiftUI:
Now you are ready to continue setting up your Integrations!
Next Steps
Was this page helpful?