Skip to content

Commit 8d2d10b

Browse files
committed
Updated README
1 parent f082990 commit 8d2d10b

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

README.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,22 @@ Read and write common delimited text file formats, including:
1111

1212
### Swift Package Manager (SPM)
1313

14-
Add this package to your Xcode project using `https://github.com/orchetect/swift-textfile-tools` as the URL, or to a Swift package Package.swift:
14+
To add this package to an Xcode app project, use:
15+
16+
`https://github.com/orchetect/swift-textfile-tools` as the URL.
17+
18+
To add this package to a Swift package, add the dependency to your package and target in Package.swift:
19+
1520
```swift
1621
let package = Package(
17-
// ...
18-
dependencies: [.package("https://github.com/orchetect/swift-textfile-tools", from: 0.2.2)],
22+
dependencies: [
23+
.package(url: "https://github.com/orchetect/swift-textfile-tools", from: "0.3.0")
24+
],
1925
targets: [
2026
.target(
21-
// ...
22-
dependencies: [.product(name: "TextFileTools", package: "swift-textfile-tools")]
27+
dependencies: [
28+
.product(name: "TextFileTools", package: "swift-textfile-tools")
29+
]
2330
)
2431
]
2532
)
@@ -52,4 +59,4 @@ Contributions are welcome. Posting in [Discussions](https://github.com/orchetect
5259

5360
## Legacy
5461

55-
This repository was formerly known as TextFileKit.
62+
This repository was formerly known as TextFileKit.

0 commit comments

Comments
 (0)