From 59e0e24f89144bf37e9718fac4e63085ee4fd24b Mon Sep 17 00:00:00 2001 From: Samuel Eshun Date: Fri, 25 Sep 2020 03:29:40 +0000 Subject: [PATCH] Update README to include SPM installation notes (#673) --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index ecc209c..8b19bd4 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,20 @@ github "SnapKit/SnapKit" ~> 5.0.0 Run `carthage update` to build the framework and drag the built `SnapKit.framework` into your Xcode project. +### Swift Package Manager + +[Swift Package Manager](https://swift.org/package-manager/) is a tool for managing the distribution of Swift code. It’s integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies. + +> Xcode 11+ is required to build SnapKit using Swift Package Manager. + +To integrate SnapKit into your Xcode project using Swift Package Manager, add it to the dependencies value of your `Package.swift`: + +```swift +dependencies: [ + .package(url: "https://github.com/SnapKit/SnapKit.git", .upToNextMajor(from: "5.0.1")) +] +``` + ### Manually If you prefer not to use either of the aforementioned dependency managers, you can integrate SnapKit into your project manually.