|
|
@@ -7,8 +7,8 @@ SnapKit is a DSL to make Auto Layout easy on both iOS and OS X.
|
|
|
[](https://cocoapods.org/pods/SnapKit)
|
|
|
[](https://github.com/Carthage/Carthage)
|
|
|
|
|
|
-#### ⚠️ **To use with Swift 2.x please ensure you are using == 0.22.0** ⚠️
|
|
|
#### ⚠️ **To use with Swift 3.x please ensure you are using >= 3.0.0** ⚠️
|
|
|
+#### ⚠️ **To use with Swift 4.x please ensure you are using >= 4.0.0** ⚠️
|
|
|
|
|
|
## Contents
|
|
|
|
|
|
@@ -23,13 +23,9 @@ SnapKit is a DSL to make Auto Layout easy on both iOS and OS X.
|
|
|
## Requirements
|
|
|
|
|
|
- iOS 8.0+ / Mac OS X 10.11+ / tvOS 9.0+
|
|
|
-- Xcode 8.0+
|
|
|
+- Xcode 9.0+
|
|
|
- Swift 3.0+
|
|
|
|
|
|
-## Migration Guides
|
|
|
-
|
|
|
-- [SnapKit 3.0 Migration Guide](https://github.com/SnapKit/SnapKit/blob/master/Documentation/SnapKit%203.0%20Migration%20Guide.md)
|
|
|
-
|
|
|
## Communication
|
|
|
|
|
|
- If you **need help**, use [Stack Overflow](http://stackoverflow.com/questions/tagged/snapkit). (Tag 'snapkit')
|
|
|
@@ -49,7 +45,7 @@ SnapKit is a DSL to make Auto Layout easy on both iOS and OS X.
|
|
|
$ gem install cocoapods
|
|
|
```
|
|
|
|
|
|
-> CocoaPods 1.1.0+ is required to build SnapKit 3.0.0+.
|
|
|
+> CocoaPods 1.1.0+ is required to build SnapKit 4.0.0+.
|
|
|
|
|
|
To integrate SnapKit into your Xcode project using CocoaPods, specify it in your `Podfile`:
|
|
|
|
|
|
@@ -59,7 +55,7 @@ platform :ios, '10.0'
|
|
|
use_frameworks!
|
|
|
|
|
|
target '<Your Target Name>' do
|
|
|
- pod 'SnapKit', '~> 3.2.0'
|
|
|
+ pod 'SnapKit', '~> 4.0.0'
|
|
|
end
|
|
|
```
|
|
|
|
|
|
@@ -83,7 +79,7 @@ $ brew install carthage
|
|
|
To integrate SnapKit into your Xcode project using Carthage, specify it in your `Cartfile`:
|
|
|
|
|
|
```ogdl
|
|
|
-github "SnapKit/SnapKit" ~> 3.2.0
|
|
|
+github "SnapKit/SnapKit" ~> 4.0.0
|
|
|
```
|
|
|
|
|
|
Run `carthage update` to build the framework and drag the built `SnapKit.framework` into your Xcode project.
|