The Atomic iOS SwiftUI SDK is a dynamic framework for integrating an Atomic stream container into your iOS SwiftUI app, presenting cards from a stream to your end users.
The SDK is written in Swift and supports iOS 16.0 and above.
The SDK can be installed using CocoaPods, Swift Package Manager, or manually.
- Add the path to the SDK spec repo to your Podfile, along with the default specs repo:
source 'https://github.com/atomic-app/action-cards-ios-sdk-specs.git'
source 'https://github.com/CocoaPods/Specs.git'
- Add the SDK as a dependency.
pod 'AtomicCards', '0.1.0'
- Run
pod update
.
Alternatively, you can install Atomic SDK directly through a git path. This will install the latest Atomic SwiftUI SDK.
pod 'AtomicCards', :git => 'https://github.com/atomic-app/action-cards-swiftui-sdk-releases.git'
Note: Currently you may face a known issue of a "Sandbox: rsync" failing message after integration. You can update your Xcode project build option ENABLE_USER_SCRIPT_SANDBOXING
to 'No' to resolve this issue.
- Open your Xcode project, and choose File > Add Packages.
- Enter
https://github.com/atomic-app/action-cards-swiftui-sdk-releases
in the upper right text field 'Search or Enter Package URL'. - Set the dependency rule and click 'Add Package'.
- Add both
AtomicSDK
andAtomicSwiftUISDK
to your target.
- You can download releases of the SDK from the Releases page on Github.
- Once you've downloaded the version you need, navigate to your project in Xcode and select the "General" settings tab.
- Drag both
AtomicSDK.xcframework
andAtomicSwiftUISDK.xcframework
from the directory where you unzipped the release, to theEmbedded Binaries
section. - When prompted, ensure that "Copy items if needed" is selected, and then click "Finish".