Skip to content

Swift: Introduction

KizunaSyncClient is the typed Swift app client over the UniFFI engine in kizunasync-ffi, and the native peer of createKizunaSync in JavaScript. Reads answer from a local SQLite file, and writes land there first, wait in a durable outbox, and settle against Supabase on a sync run. Every method except from(_:) hops off the calling thread, so a call from the main actor never blocks the interface.

Version#

kizunasync-ffi 0.2.6-alpha.3 (Alpha). Swift package https://github.com/kizunasync/kizunasync-swift, product KizunaSync. See Installing.

What this reference covers#

What Supabase covers#

ConcernUse
Sign-in, sessions, and token refreshsignInWithPassword and refreshSession, then pass the token to Set access token
Row Level Security policiesRow Level Security, which judges every mutation a push carries
Realtime channels behind the wake-up doorbellsubscribe from the app, calling wake(reason:) on the Host scheduler
Storage objects outside the attachment pathupload

Found a problem? Edit this page on GitHub