Swift SDK

Native iOS and Mac, same engine.

The Pylon sync engine is ported to Swift and kept at parity with TypeScript. Generate a typed Swift client from your schema with live queries, optimistic writes, offline reconciliation, and a Loro CRDT bridge.

Terminal
$ pylon codegen client --target swift
# Generates a typed Swift client + models from your
# schema. Drop it into your Xcode project and call
# the same queries and mutations as on the web.
  • The full sync engine runs natively in Swift
  • Feature parity with the TypeScript engine; sync fixes ship to both
  • Live queries and optimistic mutations with offline reconciliation
  • Typed client generated from your schema: pylon codegen client --target swift

How it works.

Terminal
$ pylon codegen client --target swift
# Generates a typed Swift client + models from your
# schema. Drop it into your Xcode project and call
# the same queries and mutations as on the web.

packages/swift implements the web client's reconciliation, operation queue, optimistic rollback, and snapshot pagination in Swift. Your iOS and Mac apps get the browser's local-first behavior and guarantees through a native sync engine.

What you’d otherwise wire up.

Each line is a piece teams normally assemble for this one capability. On Pylon it is part of the runtime.

  • A hand-written REST client maintained per platform
  • A local cache and the invalidation rules to go with it
  • Offline queueing implemented separately on mobile
  • A second data model that drifts from the web one

Build it on Pylon.

One framework for your schema, sync, auth, functions, realtime, and SSR. Free to start.