Getting Started
Initialize FCL and add Blocto as a wallet provider
In this guide we will show you prerequisite for Blocto Flow SDK.
A sample app is available at: https://github.com/blocto/fcl-swift/tree/main/Demo/FCL_Cocoa_Demo
Installation
Requirements
Swift version >= 5.6
iOS version >= 13
CocoaPods
FCL-SDK is available through CocoaPods. You can include specific subspec to install, simply add the following line to your Podfile:
pod 'FCL-SDK', '~> 0.2.0'Swift Package Manager
.package(url: "https://github.com/blocto/fcl-swift", .upToNextMinor(from: "0.2.0"))Here's an example PackageDescription:
// swift-tools-version: 5.6
import PackageDescription
let package = Package(
name: "MyPackage",
products: [
.library(
name: "MyPackage",
targets: ["MyPackage"]
),
],
dependencies: [
.package(url: "https://github.com/blocto/fcl-swift", .upToNextMinor(from: "0.2.0"))
],
targets: [
.target(
name: "MyPackage",
dependencies: [
.product(name: "FCL_SDK", package: "fcl-swift"),
]
)
]
)Configuration
Register app id (bloctoSDKAppId) in order to init BloctoWalletProvider
In order to let FCL-Swift know whether user install Blocto app, please add following scheme to your info.plist.

If you open source code or open info.plist with external editor, it will look like this.
Add below code to your AppDelegate:
Or if you using SceneDelegate:
Last updated
Was this helpful?