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
- In Xcode, choose File > Add Package Dependencies.
- Enter
https://github.com/figranium/figranium-swift.git. - Select the
Figraniumlibrary product and add it to your target.
Package.swift
Add the dependency to your package manifest and listFigranium as a dependency of your target.
Package.swift
Import
ImportFigranium in any file that uses the client.
Verify the install
Callhealth.check() to confirm the SDK can reach your Figranium server.
verify.swift
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.