The Breez SDK enables mobile developers to integrate Lightning and bitcoin payments into their apps with a very shallow learning curve. More information can be found here: breez/breez-sdk
This repository maintains the Breez SDK's official Swift bindings.
We support integration via the Swift Package Manager and via CocoaPods.
Via File > Add Packages...
, add
https://github.com/breez/breez-sdk-swift.git
as a package dependency in Xcode.
Add the following to the dependencies array of your Package.swift
:
.package(url: "https://github.com/breez/breez-sdk-swift.git", from: "0.0.4"),
Add the Breez SDK to your Podfile
like so:
target '<YourApp' do
use_frameworks!
pod 'BreezSDK'
end
import BreezSDK
// See: https://sdk-doc.breez.technology
To release a new version of the Swift bindings:
- Go to the Actions tab of this GitHub repository.
- Select the Publish Swift Package workflow and run it on the
main
branch. - It will ask for a version as input. The version you input here needs to correspond to an already existing version (e.g., 0.0.1) of the main breez-sdk repository.