Răsfoiți Sursa

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

Jon Shier 9 ani în urmă
părinte
comite
c8adc7b1f6
1 a modificat fișierele cu 12 adăugiri și 0 ștergeri
  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.