Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions Resources/Markdown/package-collections.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: The Swift Package Index supports the generation of package collecti

## Package Collections

[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.
[Added in Swift 5.5](https://swift.org/blog/package-collections/), package collections are a way to group and search Swift packages.

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):

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

### Using Package Collections with Xcode 13
### Using Package Collections with Xcode

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

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

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".

> **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.
### Using Package Collections with the Swift Package Manager

To add a package collection using the `swift` command-line tool, use the `swift package-collection add` command:
Expand Down
2 changes: 1 addition & 1 deletion Sources/App/Views/Author/AuthorShow+View.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ enum AuthorShow {
.text("These packages are available as a package collection, "),
.a(
.href(SiteURL.packageCollections.relativeURL()),
"usable in Xcode 13 or the Swift Package Manager 5.5"
"usable in Xcode or SwiftPM"
),
.text(".")
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ <h1>
<div class="inner">
<h2 class="trimmed">Packages authored by Test Author</h2>
<p>These packages are available as a package collection,
<a href="/package-collections">usable in Xcode 13 or the Swift Package Manager 5.5</a>.
<a href="/package-collections">usable in Xcode or SwiftPM</a>.
</p>
<form class="copyable-input">
<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/>
Expand Down
Loading