iOS
System Requirements
minimum iOS version: 15.0 or higher
minimum XCode version: 15 or higher
minimum Swift version: 5.9 or higher
Step 1. Install Nativebrik SDK to your app
Nativebrik SDK can be installed using some options below:
With Swift Package Manager
With CocoaPods
Swift Package Manager
Nativebrik is available through Swift Package Manager. To install it, follow the steps below:
In Xcode, install the SDK by navigating to
File > Add PackagesIn the prompt that appears, select the Nativebrik SDK GitHub repository:
SDK Repository
https://github.com/plaidev/nativebrik-sdkSelect the version of Nativebrik SDK you want to use. For new projects, we recommend using the newest version of Nativebrik SDK.
Once you're finished, Xcode will begin resolving your package dependencies and downloading them in the background.
CocoaPods
Nativebrik is available through CocoaPods. To install it, simply add the following line to your Podfile:
project/Podfile
and run pod install from the terminal.
XCode build failure could be solved, when it occurs.
Step 2 (SwiftUI). Initialize Nativebrik SDK in your app
Import the Nativebrik module in your root swfit code:
Initialize Nativebrik SDK in your root App struct:
and in #Preview, add NativebrikProvider to it if needed:
Step 2 (UIKit). Initialize Nativebrik SDK in your app
Import the Nativebrik module in your root swfit code:
Initialize Nativebrik SDK in your AppDelegate:
And Add Nativebrik's OverlayViewController to your root UIViewController
Last updated