---
title: "Pylon Swift SDK: the native sync engine for iOS and Mac"
description: "The Pylon sync engine ported to Swift and kept at parity with TypeScript. Live queries, optimistic writes, offline reconciliation, a Loro bridge, and codegen from your schema."
url: "https://www.pylonsync.com/product/swift"
---

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.

[Create your account →](https://cloud.stack0.dev/signup)[Read the docs](https://docs.pylonsync.com)

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.

01The sync engine in Swift02Parity across clients03Typed from your schema

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

Keep exploring

[Sync engine

Live queries over WebSocket.](/product/sync)

[Realtime

Rooms, presence, and authoritative shards.](/product/realtime)

[Database

Typed schema. Migrations on save.](/product/database)

## Build it on Pylon.

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

[Create your account →](https://cloud.stack0.dev/signup)[Read the docs](https://docs.pylonsync.com)
