You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+[](https://swiftpackageindex.com/ably/ably-liveobjects-swift-plugin)
This is a work in progress plugin that enables LiveObjects functionality in the [ably-cocoa](https://github.com/ably/ably-cocoa/) SDK. It is not yet ready to be used.
4
+
---
4
5
5
-
## Supported Platforms
6
+
#Ably LiveObjects Swift Plugin
6
7
7
-
- macOS 11 and above
8
-
- iOS 14 and above
9
-
- tvOS 14 and above
8
+
The Ably LiveObjects plugin enables real-time collaborative data synchronization for the [ably-cocoa](https://github.com/ably/ably-cocoa/) SDK. LiveObjects provides a simple way to build collaborative applications with synchronized state across multiple clients in real-time. Built on [Ably's](https://ably.com/) core service, it abstracts complex details to enable efficient collaborative architectures.
10
9
11
-
## Requirements
10
+
> [!WARNING]
11
+
> This plugin is currently experimental and the public API may change.
12
12
13
-
Xcode 16.3 or later.
13
+
---
14
14
15
-
## Installation
15
+
## Getting started
16
16
17
-
For now, here is a code snippet demonstrating how, after installing this package and ably-cocoa using Swift Package Manager, you can set up the LiveObjects plugin and access its functionality.
17
+
Everything you need to get started with Ably LiveObjects:
18
18
19
-
```swift
20
-
importAbly
21
-
importAblyLiveObjects
19
+
-[Learn about Ably LiveObjects.](https://ably.com/docs/liveobjects)
20
+
-[Getting started with LiveObjects in Swift.](https://ably.com/docs/liveobjects/quickstart/swift)
21
+
- Explore the [example app](Example) to see LiveObjects in action.
22
22
23
-
let clientOptions =ARTClientOptions(key: /* <insert your Ably API key here> */)
let channel = realtime.channels.get("myChannel", options: channelOptions)
27
+
Ably aims to support a wide range of platforms. If you experience any compatibility issues, open an issue in the repository or contact [Ably support](https://ably.com/support).
32
28
33
-
// Attach the channel
34
-
tryawaitwithCheckedThrowingContinuation { (continuation: CheckedContinuation<Void, Error>) in
35
-
channel.attach { error in
36
-
iflet error {
37
-
continuation.resume(throwing: error)
38
-
} else {
39
-
continuation.resume()
40
-
}
41
-
}
42
-
}
29
+
This plugin supports the following platforms:
43
30
44
-
// You can now access LiveObjects functionality via the channel's `objects` property:
45
-
let rootObject =tryawait channel.objects.getRoot()
46
-
// …and so on
47
-
```
31
+
| Platform | Support |
32
+
| -------- | ------- |
33
+
| iOS | >= 14.0 |
34
+
| macOS | >= 11.0 |
35
+
| tvOS | >= 14.0 |
36
+
37
+
> [!NOTE]
38
+
> Xcode 16.3 or later is required.
39
+
40
+
---
48
41
49
42
## Example app
50
43
51
-
This repository contains an example app, written using SwiftUI, which demonstrates how to use the SDK. The code for this app is in the [`Example`](Example) directory.
44
+
This repository contains an example app, written using SwiftUI, which demonstrates how to use the plugin. The code for this app is in the [`Example`](Example) directory.
52
45
53
46
In order to allow the app to use modern SwiftUI features, it supports the following OS versions:
54
47
@@ -60,8 +53,20 @@ To run the app:
60
53
61
54
1. Open the `AblyLiveObjects.xcworkspace` workspace in Xcode.
62
55
2. Follow the instructions inside the `Secrets.example.swift` file to add your Ably API key to the example app.
63
-
3. Run the `AblyLiveObjectsExample` target. If you wish to run it on an iOS or tvOS device, you’ll need to set up code signing.
56
+
3. Run the `AblyLiveObjectsExample` target. If you wish to run it on an iOS or tvOS device, you'll need to set up code signing.
57
+
58
+
---
59
+
60
+
## Releases
61
+
62
+
The [CHANGELOG.md](./CHANGELOG.md) contains details of the latest releases for this plugin. You can also view all Ably releases on [changelog.ably.com](https://changelog.ably.com).
63
+
64
+
---
65
+
66
+
## Contribute
67
+
68
+
Read the [CONTRIBUTING.md](./CONTRIBUTING.md) guidelines to contribute to Ably or [share feedback or request a new feature](https://forms.gle/mBw9M53NYuCBLFpMA).
64
69
65
-
## Contributing
70
+
## Support, feedback and troubleshooting
66
71
67
-
For guidance on how to contribute to this project, see the [contributing guidelines](CONTRIBUTING.md).
72
+
For help or technical support, visit Ably's [support page](https://ably.com/support). You can also view the [community reported GitHub issues](https://github.com/ably/ably-liveobjects-swift-plugin/issues) or raise one yourself.
0 commit comments