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 Nubrick SDK to your app

Nubrick SDK can be installed using some options below:

  • With Swift Package Manager

  • With CocoaPods

Swift Package Manager

Nubrick 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 Nubrick SDK GitHub repository:

SDK Repository

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

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

CocoaPods

Nubrick 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 Nubrick SDK in your app

Import the Nubrick module in your root swfit code:

Initialize Nubrick SDK in your root App struct:

and in #Preview, add NubrickProvider to it if needed:

Step 2 (UIKit). Initialize Nubrick SDK in your app

Import the Nubrick module in your root swfit code:

Initialize Nubrick SDK and add Nubrick's OverlayViewController to your root UIViewController

Last updated