DecaneDocs
Get startedInstall
Get started

Install

Add the package in Xcode (File, Add Package Dependencies) or in Package.swift:

swiftPackage.swift
dependencies: [
    .package(url: "https://github.com/Korex23/decane-swift", from: "0.1.0"),
],
targets: [
    .target(name: "MyApp", dependencies: [
        .product(name: "DecaneKit", package: "decane-swift"),
        .product(name: "DecaneKitUI", package: "decane-swift"), // optional, SwiftUI
    ]),
]

The Rust core arrives as a prebuilt DecaneFFI.xcframework from the matching GitHub release, with its checksum pinned in the manifest. The package is at github.com/Korex23/decane-swift.

ProductWhat it isMinimum
DecaneKitDecaneWallet, config, errors, events, platform hooksiOS 16, macOS 13
DecaneKitUIDecaneObservable, an @Observable wrapperiOS 17, macOS 14

What you need from the dashboard

Your project id (proj_…) and a publishable API key (dck_live_…). The publishable key is safe to ship in an app; never ship the project secret.