Commit Graph

466 Commits

Author SHA1 Message Date
Robert Payne 48b703a1a3
Fix podspec versions (#747)
Co-authored-by: Robert Payne <robertjpayne@Roberts-MacBook-Pro.local>
2022-04-13 16:12:28 +12:00
Robert Payne 851bbf8dd8
Feature/release 5.6 (#746)
* Add support for UILayoutPriority as priority target. (#466)

* Add support for UILayoutPriority as priority target.

* Fixed for tvOS

* Add update(priority: ConstraintPriority) method (#467)

* Add update(priority: ConstraintPriority) method

* Fix copy-paste error

* Add Swift Package Manager support (#501)

* Swift4.2 (#516)

* make ConstraintAttributes conform to ExpressibleByIntegerLiteral (#520)

* Adds 'constraint.isActive = bool' to Constraint (#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 (#547)

* Update Swift Language version to 4.2 under build settings (#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 (#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 (#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 (#569)

* Fix insets adjusting center attributes incorrectly

* Fix insets adjusting baseline attributes incorrectly

* Add back Package.swift for SwiftPM compatibility (#559)

reverts 477fffae4c

* 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 (#574)" (#593)

This reverts commit bc2b0b9332.

* Update Podspec

* Bump min version requirements

* Fix layout constraint comparison

* Fix equality check for iOS

* Adds support for NSDirectionalEdgeInsets as an inset constant (#594)

* Make ConstraintViewDSL content priorities nonmutating (#586)

* Adds two new compositions – DirectionalEdges and DirectionalMargins (#595)

* WIP

* Add directional margins

* Whitespace

* Add Playground Sample (#608)

* added updates to Package.swift so it can be imported with Xcode 11 (#615)

* Revert #574

* Update Podspec

* Add background color to quick start box in README.md (#619)

* add-dimensional-edges: add ConstraintItems horizontalEdges, verticalEdges, directionalHorizontalEdges and directionalVerticalEdges as convenience items to express left+right, top+bottom or leading+trailing (#637)

* Update deprecations to allow Xcode to auto-fixup. (#634)

* Migrate to Xcode 11 and updated travis.yml (#629)

* Migrate to Xcode 11 and updated travis.yml

* Travis to support Xcode 11

* project.pbxproj: Update to recommended settings. (#627)

* Add test assert to unit test testCanSetLabel. (#625)

* Add back support for OS X 10.11 (#645)

* Use << for ConstraintAttributes options (#659)

* Use << for ConstraintAttributes options

* iPhone 6s is not supported by the latest Xcode

* Add method getting constraint with closure to ConstraintMakerRelatable (#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 (#673)

* Fix typo

* Remove duplicate file

* xcodeproject configuration enhancement for localization (#584)

Co-authored-by: AmrAngry <c_amr.elghadban@smartdubai.ae>

* Updates to project files

* Dynamic Product (#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` (#714)

* Added Example-iOS.xcdodeproj and fixed examples (#707)

* Update README.md, add missing Migration Guides section (#721)

* Make ConstraintMaker.item public (#693)

* Typo source directory in Podspec (#738)

Source directory has been renamed in 18608ead65

* 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>
2022-04-13 16:06:06 +12:00
Steve Dao d4cb974b3e
Updated DYLIB_COMPATIBILITY_VERSION & DYLIB_CURRENT_VERSION (#646)
* Fixed carthage DYLIB_COMPATIBILITY_VERSION

* updated DYLIB_CURRENT_VERSION
2020-07-08 10:58:01 +12:00
Robert Payne c0f66e42be Update Swift Version 2017-09-17 15:01:38 +12:00
Robert Payne f0f75a9def Merge branch 'master' of github.com:SnapKit/SnapKit into swift-4
# Conflicts:
#	README.md
#	SnapKit.podspec
#	Source/Constraint.swift
#	Source/ConstraintPriority.swift
#	Source/ConstraintViewDSL.swift
#	Tests/Tests.swift
2017-09-17 14:57:16 +12:00
Robert Payne 0417bda236 Prepare for release 2017-09-17 14:21:22 +12:00
Robert Payne eb12076561 Updated license in Typealiases.swift 2017-09-17 14:21:14 +12:00
Raimon Lapuente e44888b0e4 Xcode 4 mac compatibility (#446)
* Typealias the types that are different on mac and ios
Update tests because when failing they where being blocked and stoped running

* try xcode 9 version to see tests pass

* Renaming the Typealiases to remove Generic suffix and NS prefix
2017-09-17 14:15:34 +12:00
Robert Payne d31148f449 Swift 4 Migration 2017-06-12 22:12:07 +12:00
Alex Manzella ff97375b22 Add `Strideble` conformance to `ConstraintPriority ` (#409)
This enables sugar like: `.priority(.low + 1)`
2017-02-22 15:07:09 +13:00
Robert Payne be172a3f0f Release v3.2.0 2017-02-11 23:14:27 +13:00
Robert Payne 9430a3dcd9 Release v3.2.0 (#403)
* make 'layoutConstraints' public again (#382)

* Fix wrong function call within contentCompressionResistanceHorizontalPriority (#387)

* Missing property topMargin on ConstraintMakerExtendable (#393)

This pull request adds the missing property "topMargin" to ConstraintMakerExtendable class.

* Switched main target build settings' "skip install" default settings to YES. (#391)

* Add an isActive API to Constraint

* Priority enum (#345)

* Adds ConstraintPriority enum to ConstraintMakerPrioritizable

* Constraints priority is now more robust

* Adds priority enum function

* Fixes compile error

* Adds failable initializer. Custom macOS medium priority. Adds back deleted methods

* Updates depracation messages

* Improve Priority API's

* Add extra protocol conformances to ConstraintPriority

* Tweak priority API's for offseting

* Tweak priority API's some more and add tests

* Prepare for release
2017-02-11 23:12:23 +13:00
Robert Payne 25e8e50596 Prepare for release 2017-02-11 23:10:58 +13:00
Robert Payne cdea5fee42 Tweak priority API's some more and add tests 2017-02-11 23:09:49 +13:00
Robert Payne e17ecbfde8 Tweak priority API's for offseting 2017-02-11 23:08:01 +13:00
Robert Payne 681dfcbc3a Add extra protocol conformances to ConstraintPriority 2017-02-11 22:59:05 +13:00
Robert Payne a15821b791 Improve Priority API's 2017-02-11 22:49:00 +13:00
Shehryar a7053adc4a Priority enum (#345)
* Adds ConstraintPriority enum to ConstraintMakerPrioritizable

* Constraints priority is now more robust

* Adds priority enum function

* Fixes compile error

* Adds failable initializer. Custom macOS medium priority. Adds back deleted methods

* Updates depracation messages
2017-02-11 22:37:51 +13:00
Robert Payne c206e9b944 Add an isActive API to Constraint 2017-02-11 22:36:06 +13:00
Jordane Belanger 2313eb2818 Switched main target build settings' "skip install" default settings to YES. (#391) 2017-02-11 22:32:47 +13:00
Jairo Tylera 1448d71704 Missing property topMargin on ConstraintMakerExtendable (#393)
This pull request adds the missing property "topMargin" to ConstraintMakerExtendable class.
2017-02-11 22:31:59 +13:00
David Wu b313f3e637 Fix wrong function call within contentCompressionResistanceHorizontalPriority (#387) 2017-01-06 20:25:30 +13:00
Colin T.A. Gray ab6c1fd91f make 'layoutConstraints' public again (#382) 2016-12-27 00:08:42 +13:00
Robert Payne 9a82379f93 Updated readme for version bump 2016-12-26 01:12:51 +13:00
Robert Payne ad35ec4918 Prepare release 2016-12-26 01:07:23 +13:00
Robert Payne 2b49daa72e Update swift version 2016-12-26 01:07:19 +13:00
Robert Payne 50576bbd9f Added quirks section to migration guide 2016-12-26 01:05:48 +13:00
Robert Payne 556536859e Fix bug in constraint maker duplicating constraints 2016-12-26 01:00:44 +13:00
Robert Payne 3838029c66 Merge branch 'develop' of github.com:SnapKit/SnapKit into develop 2016-12-26 00:37:52 +13:00
Felix Lapalme 63bf462e81 Make ConstraintMakerRelatable targets work with UILayoutGuide (#372)
* Make ConstraintMakerRelatable targets work with UILayoutGuide

* Fix unit tests on macOS

* Fix the OS API version availability directives
2016-12-26 00:37:38 +13:00
Robert Payne 9dcfb53445 Update project files 2016-12-26 00:26:06 +13:00
Robert Payne c12d723de2 Update code snippets 2016-12-26 00:25:57 +13:00
Michael Buxton 32cd509939 Update example project for Swift 3 (#376) 2016-12-26 00:21:10 +13:00
Eddie Kaiger 3ce0d32bce Add platform check for UILayoutGuide test. (#366) 2016-12-26 00:20:36 +13:00
Robert Payne 6ef7fca953 Attempt to fix Carthage Schemes 2016-11-27 02:25:37 +13:00
Robert Payne 98e613686f Reverse Objective-Cifying of Constraint 2016-11-24 17:21:04 +13:00
Robert Payne 6d7ba2bd91 Fix bug not storing constraints 2016-11-24 00:16:39 +13:00
Robert Payne eb107818ac Fix Memory Leaks 2016-11-24 00:03:41 +13:00
Robert Payne ddf15594fd Improve looping of existing constraints 2016-11-23 15:28:35 +13:00
Robert Payne cfa5e8cb5b Fix up iOS 9 / OSX 10.11 availability on Layout Guides 2016-10-11 23:17:32 +13:00
Living 6312572419 add @available to ConstraintLayoutGuide extension (#357)
* add @available to ConstraintLayoutGuide extension

* Modify #available
2016-10-11 23:11:00 +13:00
Robert Payne 17ed35c412 Merge branch 'master' of github.com:SnapKit/SnapKit into develop
# Conflicts:
#	Source/ConstraintMakerRelatable.swift
2016-10-08 00:18:46 +13:00
Robert Payne 02a0b2d2b7 3.0.2 Release (#347)
* Update ISSUE_TEMPLATE.md

* Update ISSUE_TEMPLATE.md

* Update ISSUE_TEMPLATE.md

* Update ISSUE_TEMPLATE.md

* Update ISSUE_TEMPLATE.md

* fix "Mutating a priority from required to not on an installed constra… (#323)

* fix "Mutating a priority from required to not on an installed constraint (or vice-versa) is not supported." when the priority is not changed

* add more check when changing layout constraint priority

* add more lenient check when changing layout constraint priority

* fix UILayoutPriorityRequired available only on iOS

* fix undeclared UILayoutPriority on macOS

* add check for tvOS

* change the result constraint of maker.center.equalTo(CGPoint) to based on the original point of superview (#336)

* change center.equalTo

* fix logic

* Add ConstraintMaker shortcuts for superview access (#341)

Added two new shortcuts for access superview in ConstraintMakerRelatable
`greaterThanOrEqualToSuperview`
`lessThanOrEqualToSuperview`

* Add `topMargin` to constraint maker (#343)

* Fix erroneus scheme

* Update settings for Carthage

* Prepare 3.0.2 release
2016-10-08 00:11:36 +13:00
Robert Payne d32a47f0dd Finish support for UILayoutGuide via Constraint MAker 2016-10-08 00:06:40 +13:00
Robert Payne dc304472aa Begin support for LayoutGuide constraint maker 2016-10-07 23:58:56 +13:00
Robert Payne 4018d4bd12 Updated info plist 2016-10-07 23:38:42 +13:00
Robert Payne daf00b5a3e Update settings for Carthage 2016-10-07 23:25:17 +13:00
Robert Payne 757ff896b4 Fix erroneus scheme 2016-10-07 23:03:10 +13:00
Robert Payne e95f7007c5 Merge branch 'master' of github.com:SnapKit/SnapKit into develop 2016-10-07 22:57:52 +13:00
Robert Payne 267cffa493 Update SnapKit 3.0 Migration Guide.md 2016-10-07 22:56:16 +13:00