Skip to content

trinsic-id/sdk-swift

Repository files navigation

Trinsic SDK for Swift

Usage

Add this repo to your Packages.swift

dependencies: [
    .package(name: "Trinsic", url: "https://github.com/trinsic-id/sdk-swift", branch: "main")
],

Import the services in your app

import Trinsic

let accountService = Services.Account().build()
let myProfile = try accountService.loginAnonymous("default")

let walletService = Services.Wallet()
    .with(profile: myProfile)
    .build()
let items = try walletService.search()