Specify Swift 5.1 syntax for targets

This commit is contained in:
Max Howell
2020-08-30 16:27:17 -04:00
committed by GitHub
parent 142d4bc111
commit 891d70ec7c

View File

@@ -408,7 +408,15 @@ developers) it is snappy and familiar.
SwiftPM:
```swift
package.append(.package(url: "https://github.com/mxcl/Path.swift.git", from: "1.0.0"))
package.append(
.package(url: "https://github.com/mxcl/Path.swift.git", from: "1.0.0")
)
package.targets.append(
.target(name: "Foo", dependencies: [
.product(name: "Path", package: "Path.swift")
])
)
```
CocoaPods: