Skip to main content
The Figranium Swift SDK installs from GitHub as a Swift Package Manager dependency. It has no external dependencies and builds on macOS, iOS, tvOS, watchOS, and server-side Swift.

Requirements

  • Swift 6.0 or newer.
  • Deployment target of macOS 13, iOS 16, tvOS 16, or watchOS 9.
  • A running Figranium server that the client can reach. Local installs default to http://localhost:11345.

Add the package

Xcode

  1. In Xcode, choose File > Add Package Dependencies.
  2. Enter https://github.com/figranium/figranium-swift.git.
  3. Select the Figranium library product and add it to your target.

Package.swift

Add the dependency to your package manifest and list Figranium as a dependency of your target.
Package.swift
No tagged version is assumed yet. Pin a version or commit once the repository publishes releases.

Import

Import Figranium in any file that uses the client.

Verify the install

Call health.check() to confirm the SDK can reach your Figranium server.
verify.swift
A healthy Figranium instance returns a HealthStatus with status equal to "ok".

Next steps

Quickstart

Save and run your first task with the SDK.

Client configuration

Configure baseURL, timeouts, custom URLSession, and default headers.