Skip to content

Commit 851bbf8

Browse files
robertjpaynebchrobotLinusUmaurovcguzhenhuaGitHub
authored
Feature/release 5.6 (SnapKit#746)
* Add support for UILayoutPriority as priority target. (SnapKit#466) * Add support for UILayoutPriority as priority target. * Fixed for tvOS * Add update(priority: ConstraintPriority) method (SnapKit#467) * Add update(priority: ConstraintPriority) method * Fix copy-paste error * Add Swift Package Manager support (SnapKit#501) * Swift4.2 (SnapKit#516) * make ConstraintAttributes conform to ExpressibleByIntegerLiteral (SnapKit#520) * Adds 'constraint.isActive = bool' to Constraint (SnapKit#496) * delegate identical 'constraint creation' code to 'prepareConstraints' * adds 'set(isActivated:)' method to call appropriate 'activate/deactivate' based on bool cleans up about 30 lines of if foo { activate } else { deactivate } code in my app * instead of 'set(isActivated:)', use 'isActive = value' * Add swift version to podspec * Update podspec * Update podspec * Update project to get rid of Migration Warning (SnapKit#547) * Update Swift Language version to 4.2 under build settings (SnapKit#551) * Update swift language version to 4.2 in build settings * Update podspec * Remove Swift Version file * Remove Package.swift, SnapKit is not SwiftPM compatible anyways * Update Podspec * Update version in Podspec * Support swift 5.0 (SnapKit#570) * Update swift version 5.0 * Remove needless access control * Fix misused "Available" annotations * Support @unknown default * Support swift 5.0 in test code * Update podspec * Update travis CI * Code review by @freak4pc * Add constraint for Swift version * Fix build failed * [EXC_BAD_ACCESS] Update LayoutConstraint == operator to support iOS 10 and higher changes (SnapKit#574) * @sashabelonogov Update LayoutConstraint == operator to support iOS 10 and higher changes * Simplify return statement of the LayoutConstraint == operator * Fix incorrect behavior of inset with center and baseline anchors (SnapKit#569) * Fix insets adjusting center attributes incorrectly * Fix insets adjusting baseline attributes incorrectly * Add back Package.swift for SwiftPM compatibility (SnapKit#559) reverts 477fffa * Update podspec * Update min target versions * Update min target versions * Update README.md * Update README.md * Revert "[EXC_BAD_ACCESS] Update LayoutConstraint == operator to support iOS 10 and higher changes (SnapKit#574)" (SnapKit#593) This reverts commit bc2b0b9. * Update Podspec * Bump min version requirements * Fix layout constraint comparison * Fix equality check for iOS * Adds support for NSDirectionalEdgeInsets as an inset constant (SnapKit#594) * Make ConstraintViewDSL content priorities nonmutating (SnapKit#586) * Adds two new compositions – DirectionalEdges and DirectionalMargins (SnapKit#595) * WIP * Add directional margins * Whitespace * Add Playground Sample (SnapKit#608) * added updates to Package.swift so it can be imported with Xcode 11 (SnapKit#615) * Revert SnapKit#574 * Update Podspec * Add background color to quick start box in README.md (SnapKit#619) * add-dimensional-edges: add ConstraintItems horizontalEdges, verticalEdges, directionalHorizontalEdges and directionalVerticalEdges as convenience items to express left+right, top+bottom or leading+trailing (SnapKit#637) * Update deprecations to allow Xcode to auto-fixup. (SnapKit#634) * Migrate to Xcode 11 and updated travis.yml (SnapKit#629) * Migrate to Xcode 11 and updated travis.yml * Travis to support Xcode 11 * project.pbxproj: Update to recommended settings. (SnapKit#627) * Add test assert to unit test testCanSetLabel. (SnapKit#625) * Add back support for OS X 10.11 (SnapKit#645) * Use << for ConstraintAttributes options (SnapKit#659) * Use << for ConstraintAttributes options * iPhone 6s is not supported by the latest Xcode * Add method getting constraint with closure to ConstraintMakerRelatable (SnapKit#663) * add ConstraintMakerRelatable extension * fix fatalError message Co-authored-by: Jimi <jimi-hpcnt@hpcnt.com> * Xcode 12 and SwiftPM enhancements * Update README to include SPM installation notes (SnapKit#673) * Fix typo * Remove duplicate file * xcodeproject configuration enhancement for localization (SnapKit#584) Co-authored-by: AmrAngry <c_amr.elghadban@smartdubai.ae> * Updates to project files * Dynamic Product (SnapKit#710) This PR adds a dynamic product to SnapKit. Having a dynamic product is important in modular project structures; multiple packages may be using SnapKit, and this allows that support without the end-user have to wrap SnapKit in their own package that exposes it and using that package in lieu of SnapKit. * Fix warning about `class` (SnapKit#714) * Added Example-iOS.xcdodeproj and fixed examples (SnapKit#707) * Update README.md, add missing Migration Guides section (SnapKit#721) * Make ConstraintMaker.item public (SnapKit#693) * Typo source directory in Podspec (SnapKit#738) Source directory has been renamed in 18608ea * Release 5.6 * Update urls in readme * Update podspec version Co-authored-by: Benjamin Chrobot <benjamin.blair.chrobot@gmail.com> Co-authored-by: Linus Unnebäck <linus@folkdatorn.se> Co-authored-by: Mauro Vime Castillo <mvimeapps@gmail.com> Co-authored-by: o( ̄へ ̄)o <guzhenhuaGitHub@users.noreply.github.com> Co-authored-by: Colin T.A. Gray <colinta@gmail.com> Co-authored-by: Shai Mishali <freak4pc@gmail.com> Co-authored-by: Ibrahim Koteish <ikteish@yahoo.com> Co-authored-by: Jungwon An <kawoou@kawoou.kr> Co-authored-by: Alexander Belonogov <sashabelonogov@gmail.com> Co-authored-by: Christian Schnorr <christian.schnorr@me.com> Co-authored-by: Josh Converse <josh.converse@gmail.com> Co-authored-by: Vitalii Budnik <nekrich@users.noreply.github.com> Co-authored-by: Shiva Huang <shiva.tw@gmail.com> Co-authored-by: Max Cobb <5754073+maxxfrazer@users.noreply.github.com> Co-authored-by: Liam Elmore <32336260+iosmo@users.noreply.github.com> Co-authored-by: Sven Driemecker <sven.dr@gmx.de> Co-authored-by: Alex Simpson <alexandersimpson94@gmail.com> Co-authored-by: pushp1989 <54930194+pushp1989@users.noreply.github.com> Co-authored-by: Ben Yohay <ben@lightricks.com> Co-authored-by: Natascha Fadeeva <nataschafadeeva@aol.de> Co-authored-by: Wang, Chi <patr0nus@users.noreply.github.com> Co-authored-by: Roman Podymov <podymfrombryansk@yandex.ru> Co-authored-by: wotjd <wotjd971102@gmail.com> Co-authored-by: Jimi <jimi-hpcnt@hpcnt.com> Co-authored-by: Samuel Eshun <samueleshun15@gmail.com> Co-authored-by: Amr Elghadban <amr.elghadban@gmail.com> Co-authored-by: AmrAngry <c_amr.elghadban@smartdubai.ae> Co-authored-by: Hesham Salman <iron-ham@github.com> Co-authored-by: Mr. Ming <minglq.9@gmail.com> Co-authored-by: Teameh <tiemevanveen@hotmail.com> Co-authored-by: Josip Rezić <josip.rezic@hotmail.com> Co-authored-by: Rhett Tuan <devindwan@gmail.com> Co-authored-by: Damien Debin <ddebin@users.noreply.github.com> Co-authored-by: Robert Payne <robertjpayne@Roberts-MacBook-Pro.local>
1 parent d4cb974 commit 851bbf8

File tree

61 files changed

+1429
-353
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+1429
-353
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
.build/
12
project.xcworkspace
23
xcuserdata
34
Examples/
45
.DS_Store
56
Gemfile
67
Gemfile.lock
78
*.sketch
9+
.swiftpm

.swift-version

-1
This file was deleted.

.travis.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
language: objective-c
2-
osx_image: xcode9
2+
osx_image: xcode11
33

44
env:
5-
- ACTION=test PLATFORM=Mac DESTINATION='platform=OS X'
6-
- ACTION=test PLATFORM=iOS DESTINATION='platform=iOS Simulator,name=iPhone 6S'
7-
- ACTION=test PLATFORM=tvOS DESTINATION='platform=tvOS Simulator,name=Apple TV 1080p'
5+
- ACTION=test PLATFORM=Mac DESTINATION='platform=macOS'
6+
- ACTION=test PLATFORM=iOS DESTINATION='platform=iOS Simulator,name=iPhone 8'
7+
- ACTION=test PLATFORM=tvOS DESTINATION='platform=tvOS Simulator,name=Apple TV 4K (at 1080p)'
88

99
script:
1010
- set -o pipefail && xcodebuild -scheme SnapKit -destination "$DESTINATION" $ACTION | xcpretty

Example-iOS/AppDelegate.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
1313

1414
var window: UIWindow?
1515

16-
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
16+
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
1717

1818
self.window = UIWindow(frame: UIScreen.main.bounds)
1919

@@ -27,4 +27,4 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
2727

2828
return true
2929
}
30-
}
30+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"colors" : [
3+
{
4+
"idiom" : "universal"
5+
}
6+
],
7+
"info" : {
8+
"author" : "xcode",
9+
"version" : 1
10+
}
11+
}

Example-iOS/Assets.xcassets/AppIcon.appiconset/Contents.json

+30-15
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,52 @@
22
"images" : [
33
{
44
"idiom" : "iphone",
5-
"size" : "29x29",
6-
"scale" : "2x"
5+
"scale" : "2x",
6+
"size" : "20x20"
77
},
88
{
99
"idiom" : "iphone",
10-
"size" : "29x29",
11-
"scale" : "3x"
10+
"scale" : "3x",
11+
"size" : "20x20"
1212
},
1313
{
1414
"idiom" : "iphone",
15-
"size" : "40x40",
16-
"scale" : "2x"
15+
"scale" : "2x",
16+
"size" : "29x29"
1717
},
1818
{
1919
"idiom" : "iphone",
20-
"size" : "40x40",
21-
"scale" : "3x"
20+
"scale" : "3x",
21+
"size" : "29x29"
2222
},
2323
{
2424
"idiom" : "iphone",
25-
"size" : "60x60",
26-
"scale" : "2x"
25+
"scale" : "2x",
26+
"size" : "40x40"
2727
},
2828
{
2929
"idiom" : "iphone",
30-
"size" : "60x60",
31-
"scale" : "3x"
30+
"scale" : "3x",
31+
"size" : "40x40"
32+
},
33+
{
34+
"idiom" : "iphone",
35+
"scale" : "2x",
36+
"size" : "60x60"
37+
},
38+
{
39+
"idiom" : "iphone",
40+
"scale" : "3x",
41+
"size" : "60x60"
42+
},
43+
{
44+
"idiom" : "ios-marketing",
45+
"scale" : "1x",
46+
"size" : "1024x1024"
3247
}
3348
],
3449
"info" : {
35-
"version" : 1,
36-
"author" : "xcode"
50+
"author" : "xcode",
51+
"version" : 1
3752
}
38-
}
53+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"author" : "xcode",
4+
"version" : 1
5+
}
6+
}

0 commit comments

Comments
 (0)