diff --git a/resources/supported-platforms.mdx b/resources/supported-platforms.mdx index b4729599..f113a2f2 100644 --- a/resources/supported-platforms.mdx +++ b/resources/supported-platforms.mdx @@ -93,7 +93,7 @@ description: "Supported platforms and major features by PowerSync Client SDK" | 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 | diff --git a/sync/streams/overview.mdx b/sync/streams/overview.mdx index 5473950e..b0076b8a 100644 --- a/sync/streams/overview.mdx +++ b/sync/streams/overview.mdx @@ -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. @@ -417,8 +417,23 @@ Select your language for specific examples: ``` - - Coming soon + + ```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() + ```