Skip to content

Commit 4478f70

Browse files
committed
docs: improve readme
1 parent 9ad5b64 commit 4478f70

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,24 @@ The easiest way to test the PowerSync Swift SDK is to run our demo application.
2929
Add
3030

3131
```swift
32-
.package(url: "https://github.com/powersync-ja/powersync-swift", exact: "<version>")
32+
dependencies: [
33+
...
34+
.package(url: "https://github.com/powersync-ja/powersync-swift", exact: "<version>")
35+
],
36+
targets: [
37+
.target(
38+
name: "YourTargetName",
39+
dependencies: [
40+
...
41+
.product(
42+
name: "PowerSync",
43+
package: "powersync-swift"
44+
),
45+
]
46+
)
47+
]
3348
```
3449

35-
3650
to your `Package.swift` file and pin the dependency to a specific version. This is required because the package is in beta.
3751

3852
## Underlying Kotlin Dependency

0 commit comments

Comments
 (0)