Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion resources/supported-platforms.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
| --- | --- | --- |
| iOS | Yes | Uses native SQLite via Capacitor Community SQLite. |
| Android | Yes | Uses native SQLite via Capacitor Community SQLite. |
| Web | Yes | Uses WASQLite via the PowerSync Web SDK. |

Check warning on line 51 in resources/supported-platforms.mdx

View check run for this annotation

Mintlify / Mintlify Validation (powersync) - vale-spellcheck

resources/supported-platforms.mdx#L51

Did you really mean 'WASQLite'?
| Electron | Yes | Uses WASQLite via the PowerSync Web SDK. |

Check warning on line 52 in resources/supported-platforms.mdx

View check run for this annotation

Mintlify / Mintlify Validation (powersync) - vale-spellcheck

resources/supported-platforms.mdx#L52

Did you really mean 'WASQLite'?
| HTTP connection method | Yes | |
| WebSocket connection method | Yes | |

Expand Down Expand Up @@ -83,7 +83,7 @@
| JS | No | |
| WebAssembly | No | |
| HTTP connection method | Yes | |
| WebSocket connection method | Yes | Note: Only as an automated fallback for clients without backpressure support. |

Check warning on line 86 in resources/supported-platforms.mdx

View check run for this annotation

Mintlify / Mintlify Validation (powersync) - vale-spellcheck

resources/supported-platforms.mdx#L86

Did you really mean 'backpressure'?

## <Icon icon="swift" iconType="solid" size={32}/> Swift SDK

Expand All @@ -93,7 +93,7 @@
| iOS | Yes | |
| watchOS | Yes | watchOS 26 not supported yet |
| iPadOS | Yes | |
| tvOS | No | Planned |
| tvOS | Yes | Added in v1.11.0 |
| macOS Catalyst | No | KT-40442 Support building Kotlin/Native for Mac Catalyst (x86-64 and arm64) |
| visionOS | No | KT-59571 Add support for visionOS SDK |
| Non-apple targets (Linux, Windows) | No | No good way to link PowerSync |
Expand All @@ -106,9 +106,9 @@
| --- | --- | --- |
| WPF | No | Some known build issues |
| MAUI | Yes | |
| Winforms | YMMV - not tested | |

Check warning on line 109 in resources/supported-platforms.mdx

View check run for this annotation

Mintlify / Mintlify Validation (powersync) - vale-spellcheck

resources/supported-platforms.mdx#L109

Did you really mean 'Winforms'?
| CLI Windows | Yes | |
| CLI Mac | Yes | |
| Avalonia UI | YMMV - not tested | |

Check warning on line 112 in resources/supported-platforms.mdx

View check run for this annotation

Mintlify / Mintlify Validation (powersync) - vale-spellcheck

resources/supported-platforms.mdx#L112

Did you really mean 'Avalonia'?
| HTTP connection method | Yes | |
| WebSocket connection method | No | |
21 changes: 18 additions & 3 deletions sync/streams/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Sync Streams will be supported alongside Sync Rules for the foreseeable future,
* Dart: v1.16.0
* Kotlin: v1.7.0
* .NET: v0.0.8-alpha.1
* Swift: [In progress](https://github.com/powersync-ja/powersync-swift/pull/86).
* Swift: v1.11.0
* Use of the [Rust-based sync client](https://releases.powersync.com/announcements/improved-sync-performance-in-our-client-sdks). The Rust-based sync client is enabled by default on the latest version of all SDKs. If you are on a lower version, follow the instructions below to enable it.

<Expandable title="Instructions for enabling Rust client on lower SDK versions">
Expand Down Expand Up @@ -417,8 +417,23 @@ Select your language for specific examples:
```
</Tab>

<Tab title="Swift - Coming soon">
Coming soon
<Tab title="Swift">
```swift
let sub = try await db.syncStream(name: "issues", params: ["id": JsonValue.string("issue-id")]).subscribe(
ttl: 60 * 60, // 1 hour
priority: nil
);

// Resolve current status for subscription
let status = db.currentStatus.forStream(stream: sub)
let progress = status?.progress

// Wait for this subscription to have synced
try await sub.waitForFirstSync()

// When the component needing the subscription is no longer active...
try await sub.unsubscribe()
```
</Tab>
</Tabs>

Expand Down