iOS

circle-info

アカウント作成がまだの方は、最初に下記を参考の上、作成をお願いします。

https://docs.nativebrik.com/start/quickstart/accountarrow-up-right

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 Managerarrow-up-right. To install it, follow the steps below:

  1. In Xcode, install the SDK by navigating to File > Add Packages

  2. In the prompt that appears, select the Nativebrik SDK GitHub repository:

SDK Repository

https://github.com/plaidev/nativebrik-sdk
  1. Select the version of Nativebrik SDK you want to use. For new projects, we recommend using the newest version of Nativebrik SDK.

  2. Once you're finished, Xcode will begin resolving your package dependencies and downloading them in the background.

CocoaPods

Nativebrik is available through CocoaPodsarrow-up-right. To install it, simply add the following line to your Podfile:

project/Podfile

and run pod install from the terminal.

circle-exclamation

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