Skip to content

Commit 59e0e24

Browse files
authored
Update README to include SPM installation notes (SnapKit#673)
1 parent 18608ea commit 59e0e24

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,20 @@ github "SnapKit/SnapKit" ~> 5.0.0
8484

8585
Run `carthage update` to build the framework and drag the built `SnapKit.framework` into your Xcode project.
8686

87+
### Swift Package Manager
88+
89+
[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.
90+
91+
> Xcode 11+ is required to build SnapKit using Swift Package Manager.
92+
93+
To integrate SnapKit into your Xcode project using Swift Package Manager, add it to the dependencies value of your `Package.swift`:
94+
95+
```swift
96+
dependencies: [
97+
.package(url: "https://github.com/SnapKit/SnapKit.git", .upToNextMajor(from: "5.0.1"))
98+
]
99+
```
100+
87101
### Manually
88102

89103
If you prefer not to use either of the aforementioned dependency managers, you can integrate SnapKit into your project manually.

0 commit comments

Comments
 (0)