Commit Graph

117 Commits

Author SHA1 Message Date
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
Andrey Ufimtsev 39afda860e Add `topMargin` to constraint maker (#343) 2016-10-03 22:47:58 +13:00
Txai Wieser 180ff1477e Add ConstraintMaker shortcuts for superview access (#341)
Added two new shortcuts for access superview in ConstraintMakerRelatable
`greaterThanOrEqualToSuperview`
`lessThanOrEqualToSuperview`
2016-09-30 17:57:23 +13:00
Living da4426cb9a change the result constraint of maker.center.equalTo(CGPoint) to based on the original point of superview (#336)
* change center.equalTo

* fix logic
2016-09-29 00:41:15 +13:00
vhosune 3f529652a4 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
2016-09-23 22:54:49 +12:00
Robert Payne e38b01b52e Fix up leading and trailing with UIEdgeInsets 2016-09-20 17:11:30 +12:00
Robert Payne de00f5e87e Fix up debug labels accessors 2016-09-20 17:08:30 +12:00
Robert Payne 46c02e3cc9 Fix edges to edges for macOS 2016-09-20 16:57:16 +12:00
Robert Payne cfa4c6a545 Fix up memory leaks 2016-09-20 16:53:32 +12:00
Robert Payne f29d66a079 Add deprecated install/uninstall 2016-09-14 20:59:59 +12:00
Robert Payne ffd450754a Update deprecation notice versions 2016-09-14 20:59:51 +12:00
Robert Payne 67271dc666 Rework how updateConstraints works if no existing constraints
updateConstraints will no longer allow creation of new constraints but if you call updateConstraints and there have been no previous constraints created it will re-route to makeConstraints
2016-09-10 21:51:20 +12:00
Robert Payne ac0b5829aa Remove prints 2016-09-10 16:40:55 +12:00
Robert Payne cdedbcdea7 Fix bug where pinning composite to composite would fail 2016-09-10 16:38:40 +12:00
Robert Payne 9b1a0519ee Add back in equalToSuperview API 2016-09-10 16:31:28 +12:00
Robert Payne 2e4cebf41d Fix bug around view.snp.layoutConstraints being dealloc’d 2016-09-07 20:23:54 +12:00
Robert Payne 2764642a2d Tweaks for OSX support 2016-09-02 01:39:08 +12:00
Robert Payne 514ec79042 Add support for edges to margins and margins to edges 2016-09-02 01:23:25 +12:00
Robert Payne 214682b806 Merge branch 'feature/0.40.0' of github.com:SnapKit/SnapKit into feature/0.40.0 2016-09-02 00:54:29 +12:00
Robert Payne 17db4dee15 Increase test coverage and fix bugs 2016-09-02 00:54:18 +12:00
Robert Payne 4da527ab19 Merge pull request #285 from uny/feature/0.40.0
Make ConstraintDescription.constraint lazy
2016-09-02 00:54:07 +12:00
Robert Payne fc298aeaf4 Split up DSL and add support for UILayoutGuide 2016-09-02 00:27:26 +12:00
Yuki Nagai 4bd29e82fb Make ConstraintDescription.constraint lazy 2016-08-29 15:23:22 +09:00
Robert Payne fbd807fd09 Alter how insets work when used as implied constant
Using make.left.bottom.equalTo(UIEdgeInsets) will now invert the right and bottom edge.
2016-08-16 23:24:48 +12:00
Robert Payne 7e8c173224 Allow implied superview for equalTo(constant) 2016-08-16 23:24:14 +12:00
Robert Payne 79137bce68 Xcode 8 - Beta 6 2016-08-16 22:53:27 +12:00
Robert Payne a772f08051 Remove unused code 2016-08-16 22:53:17 +12:00
Robert Payne e039522882 Fix OSX deprecation 2016-08-08 11:08:22 +12:00
Robert Payne 6aca61ac93 Add `center` to constraint maker 2016-08-06 23:25:03 +12:00
Robert Payne 1b712cde8c Remove unecessary print statement 2016-08-06 23:24:55 +12:00
Robert Payne 9d0232ca08 API updates, migrate away from iOS 7.0 support 2016-08-06 22:38:02 +12:00
Robert Payne 17a01931db Deprecate priority helpers 2016-08-04 10:57:30 +12:00
Robert Payne f5511c3bac Add in existing update functions and deprecate them 2016-08-04 10:57:23 +12:00
Robert Payne e713b9da5b Add API’s for updating offset/inset/priorty 2016-08-04 10:46:25 +12:00
Robert Payne 200b341492 Add content hugging / compression resistance shortcuts 2016-08-04 10:27:26 +12:00
Robert Payne 8b85ac86d3 Fix missing availability macro 2016-08-04 10:27:15 +12:00
Robert Payne 8fc933a5c2 Fix up legacy deployment and availability of APIs 2016-08-03 14:39:47 +12:00
Robert Payne 4715badfa0 Beta 4 Updates 2016-08-02 19:56:16 +12:00
Robert Payne 9f8ad44677 Add missing remove constraints function content 2016-07-11 21:56:23 -06:00
Robert Payne adab4b821a Deprecate .baseline and migrate to .lastBaseline 2016-07-06 09:08:14 -07:00
Alex Pawlowski b916d75956 Added sensible @discardableResult attributes for ConstraintMaker public functions 2016-06-28 15:55:23 +03:00
Alex Pawlowski d00444d7d1 Migrated to latest Swift 3.0 syntax and latest macOS Cocoa API 2016-06-28 15:31:43 +03:00
Robert Payne 8355410d92 Swift 3.0 Migration 2016-06-15 13:49:49 +12:00
Robert Payne f785886d3a Fix deprecated APIs 2016-05-19 17:02:15 +12:00
Robert Payne d2f259ec5f Bump deprecation notices versioning 2016-05-19 16:54:19 +12:00
Robert Payne 7ba532d597 Major overhaul 2016-01-26 23:49:04 +13:00
Ray Lillywhite 483d525c72 Fix handling of UIEdgeInsets for width and height 2016-01-07 13:52:28 -08:00
Robert Payne 2dcf3bddfa nits 2015-11-08 21:18:01 +13:00