Quellcode durchsuchen

[PR #1898] Added README entry about installing through SPM.

Jon Shier vor 9 Jahren
Ursprung
Commit
c8adc7b1f6
1 geänderte Dateien mit 12 neuen und 0 gelöschten Zeilen
  1. 12 0
      README.md

+ 12 - 0
README.md

@@ -122,6 +122,18 @@ github "Alamofire/Alamofire" ~> 4.0
 
 Run `carthage update` to build the framework and drag the built `Alamofire.framework` into your Xcode project.
 
+### Swift Pacakge Manager
+
+The [Swift Pacakage Manager](https://swift.org/package-manager/) is a tool for automating the distribution of Swift code and is integrated into the `swift` compiler. It is in early development, but Alamofire does support its use on supported platforms. 
+
+Once you have your Swift package set up, adding Alamofire as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift`.
+
+```swift
+dependencies: [
+    .Package(url: "https://github.com/Alamofire/Alamofire.git", majorVersion: 4)
+]
+```
+
 ### Manually
 
 If you prefer not to use either of the aforementioned dependency managers, you can integrate Alamofire into your project manually.