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.
| Product | What it is | Minimum |
|---|---|---|
DecaneKit | DecaneWallet, config, errors, events, platform hooks | iOS 16, macOS 13 |
DecaneKitUI | DecaneObservable, an @Observable wrapper | iOS 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.