-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
github "SnapKit/SnapKit" "4.0.0" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
project.xcworkspace | ||
xcuserdata | ||
Examples/ | ||
.DS_Store | ||
Gemfile | ||
Gemfile.lock | ||
*.sketch |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
4.0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
language: objective-c | ||
osx_image: xcode9 | ||
|
||
env: | ||
- ACTION=test PLATFORM=Mac DESTINATION='platform=OS X' | ||
- ACTION=test PLATFORM=iOS DESTINATION='platform=iOS Simulator,name=iPhone 6S' | ||
- ACTION=test PLATFORM=tvOS DESTINATION='platform=tvOS Simulator,name=Apple TV 1080p' | ||
|
||
script: | ||
- set -o pipefail && xcodebuild -scheme SnapKit -destination "$DESTINATION" $ACTION | xcpretty |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Contributing | ||
|
||
- If you **need help**, use [Stack Overflow](http://stackoverflow.com/questions/tagged/snapkit). (Tag 'snapkit') | ||
- If you'd like to **ask a general question**, use [Stack Overflow](http://stackoverflow.com/questions/tagged/snapkit). | ||
- If you **found a bug**, open an issue. | ||
- If you **have a feature request**, open an issue. | ||
- If you **want to contribute**, submit a pull request. | ||
|
||
### Pull Requests | ||
|
||
We gladly accept any PR's assuming they are well written, documented ( if necessary ) and preferably have test code. If you're unsure if we'll accept a new feature please open an issue requesting it and we can have a discussion before you code and submit a PR. | ||
|
||
### Issues | ||
|
||
Please use the issue tracker *strictly* for bugs you think are caused by a code issue in SnapKit. We’re very busy and as a free open source library do not have the time to adequately help with questions that are more tutorial/training in nature and recommend using Stack Overflow and Google as alternatives. | ||
|
||
Please do not be offended if we close your issue and reference this document. If you believe the issue is truly a fault in SnapKit’s codebase, re-open it. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>IDECodeSnippetCompletionPrefix</key> | ||
<string>snpmake</string> | ||
<key>IDECodeSnippetCompletionScopes</key> | ||
<array> | ||
<string>CodeBlock</string> | ||
</array> | ||
<key>IDECodeSnippetContents</key> | ||
<string><#view#>.snp.makeConstraints { make in | ||
<#code#> | ||
}</string> | ||
<key>IDECodeSnippetIdentifier</key> | ||
<string>FF434629-7B96-4AB9-BD96-522275E7B106</string> | ||
<key>IDECodeSnippetLanguage</key> | ||
<string>Xcode.SourceCodeLanguage.Swift</string> | ||
<key>IDECodeSnippetTitle</key> | ||
<string>SnapKit Constraint Make</string> | ||
<key>IDECodeSnippetUserSnippet</key> | ||
<true/> | ||
<key>IDECodeSnippetVersion</key> | ||
<integer>2</integer> | ||
</dict> | ||
</plist> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>IDECodeSnippetCompletionPrefix</key> | ||
<string>snpremake</string> | ||
<key>IDECodeSnippetCompletionScopes</key> | ||
<array> | ||
<string>TopLevel</string> | ||
</array> | ||
<key>IDECodeSnippetContents</key> | ||
<string><#view#>.snp.remakeConstraints { make in | ||
<#code#> | ||
}</string> | ||
<key>IDECodeSnippetIdentifier</key> | ||
<string>FD093546-D614-4311-82C3-E8FE842F62B1</string> | ||
<key>IDECodeSnippetLanguage</key> | ||
<string>Xcode.SourceCodeLanguage.Swift</string> | ||
<key>IDECodeSnippetTitle</key> | ||
<string>SnapKit Constraint Remake</string> | ||
<key>IDECodeSnippetUserSnippet</key> | ||
<true/> | ||
<key>IDECodeSnippetVersion</key> | ||
<integer>0</integer> | ||
</dict> | ||
</plist> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
## SnapKit 3.0 Migration Guide | ||
|
||
SnapKit 3.0 has many breaking changes from earlier versions. You can read the [notes on releases](https://github.com/SnapKit/SnapKit/releases) for more details. | ||
|
||
1. Upgrade SnapKit installation | ||
2. Find all `snp_` and replace with `snp.` | ||
3. Find all `equalTo(UIEdgeInsets)` and ensure any right or bottom inset values are no longer inverted | ||
4. Build and fix deprecated APIs | ||
5. Test every screen of UI to ensure visual compatibility | ||
|
||
If you find any issues with migration please open an issue. | ||
|
||
### Known Quirks | ||
|
||
1. `make.center.equalTo(0)` now positions a view at 0,0 in it's superview rather than the center, use `make.center.equalToSuperview` instead. | ||
2. `updateConstraints` will throw a fatal error if it generates a *new* constraint that did not exist before. Instead use `makeConstraints` to add additional constraints. |