Skip to content

Commit cf3070d

Browse files
authored
Merge pull request #3510 from SwiftPackageIndex/package-collections-update
Slight modernisation of package collection documentation
2 parents 29ae100 + fbf4626 commit cf3070d

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

Resources/Markdown/package-collections.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: The Swift Package Index supports the generation of package collecti
55

66
## Package Collections
77

8-
[Added in Swift 5.5](https://swift.org/blog/package-collections/), package collections are a way to group and search Swift packages. You can add collections into Xcode 13, giving you a much easier way to add your favourite or commonly used packages into your apps.
8+
[Added in Swift 5.5](https://swift.org/blog/package-collections/), package collections are a way to group and search Swift packages.
99

1010
The Swift Package Index dynamically generates package collections containing all packages from every package author in the index. Each author page includes a "Copy Package Collection URL" button that copies a link you can directly paste into Xcode. For example, from the [Vapor project's author page on the Swift Package Index](/vapor):
1111

@@ -14,7 +14,7 @@ The Swift Package Index dynamically generates package collections containing all
1414
<img src="/images/screenshots/author-page-vapor-packages~light.png" alt="Package Collection support on the Swift Package Index.">
1515
</picture>
1616

17-
### Using Package Collections with Xcode 13
17+
### Using Package Collections with Xcode
1818

1919
Select your project in the Xcode project navigator, select it again in the projects and targets list, and switch to the Swift Packages tab:
2020

@@ -32,8 +32,6 @@ Click the `+` button below the Packages list, and you'll see a Collections list
3232

3333
Click the `+` at the bottom of the Collections list and paste in the URL to a package collection. That's it! You can now add packages from that collection to your project by selecting one and clicking "Add Package".
3434

35-
> **Note:** When adding a package collection from the Swift Package Index, you'll see a warning "Package Collection Not Signed". We're working on adding support for signed collections.
36-
3735
### Using Package Collections with the Swift Package Manager
3836

3937
To add a package collection using the `swift` command-line tool, use the `swift package-collection add` command:

Sources/App/Views/Author/AuthorShow+View.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ enum AuthorShow {
5353
.text("These packages are available as a package collection, "),
5454
.a(
5555
.href(SiteURL.packageCollections.relativeURL()),
56-
"usable in Xcode 13 or the Swift Package Manager 5.5"
56+
"usable in Xcode or SwiftPM"
5757
),
5858
.text(".")
5959
),

Tests/AppTests/__Snapshots__/WebpageSnapshotTests/test_AuthorShow.1.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ <h1>
8484
<div class="inner">
8585
<h2 class="trimmed">Packages authored by Test Author</h2>
8686
<p>These packages are available as a package collection,
87-
<a href="/package-collections">usable in Xcode 13 or the Swift Package Manager 5.5</a>.
87+
<a href="/package-collections">usable in Xcode or SwiftPM</a>.
8888
</p>
8989
<form class="copyable-input">
9090
<input type="text" data-button-name="Copy Package Collection URL" data-event-name="Copy Package Collection URL Button" value="http://localhost:8080/test-author/collection.json" readonly/>

0 commit comments

Comments
 (0)