Browse Source

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

Jon Shier 9 years ago
parent
commit
c8adc7b1f6
1 changed files with 12 additions and 0 deletions
  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.
 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
 ### Manually
 
 
 If you prefer not to use either of the aforementioned dependency managers, you can integrate Alamofire into your project manually.
 If you prefer not to use either of the aforementioned dependency managers, you can integrate Alamofire into your project manually.