For the complete documentation index, see llms.txt. This page is also available as Markdown.

NubrickProvider

NubrickProvider は SwiftUI でオーバーレイ表示を有効化するためのラッパーです。

定義

@MainActor
public struct NubrickProvider<Content: View>: View {
    public init(@ViewBuilder content: () -> Content)
    public var body: some View
}

使い方

@main
@MainActor
struct YourApp: App {
    init() {
        NubrickSDK.initialize(projectId: "<YOUR_PROJECT_ID>")
    }

    var body: some Scene {
        WindowGroup {
            NubrickProvider {
                ContentView()
            }
        }
    }
}

Last updated