Overview
The Synheart Core Swift SDK collects approved signals, processes human state on-device, and delivers HSI 1.3 state windows to native Apple applications. Key features:- iOS, macOS, watchOS, and tvOS support
- On-device HSI processing
- Typed and raw Combine publishers
- Modular signal collection
- Consent-aware local storage and cloud delivery
Installation
Add the Swift package
In Xcode, choose File → Add Package Dependencies and enter:Install the native runtime
The Swift package provides the Apple integration layer. On-device HSI computation requires the native Synheart runtime.Apple permissions
Add only the usage descriptions required by the features your app enables:Quick start
The normal lifecycle is:Production configuration
Use pseudonymous subject identifiers and the service origins issued for your environment. Do not embed API secrets or shared signing keys in the application.Features and consent
A feature operates only when it is activated, consented, allowed by capability policy, and an eligible session is active.HSI state updates
Use the typed publisher for application logic:currentHSIState provides the latest typed value and currentState provides the latest raw JSON. HSI is emitted in windows, not for every sensor sample, so applications should show a collecting state while waiting for the first valid window.
See the HSI specification for the wire format.
Cloud delivery and diagnostics
Cloud delivery requires cloud configuration, consent, feature activation, device registration, and network availability.Advanced capabilities
The Swift SDK also exposes the following runtime-backed features. Availability depends on the linked runtime and the application’s capability policy.
Pairing tokens, recovery keys, and exported baseline material are sensitive. Keep them out of logs and analytics and store them using platform-protected storage.