Specify Swift 5.1 syntax for targets
This commit is contained in:
10
README.md
10
README.md
@@ -408,7 +408,15 @@ developers) it is snappy and familiar.
|
|||||||
SwiftPM:
|
SwiftPM:
|
||||||
|
|
||||||
```swift
|
```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:
|
CocoaPods:
|
||||||
|
|||||||
Reference in New Issue
Block a user