Benjamin Chrobot
2c8262ef9f
Add update(priority: ConstraintPriority) method ( #467 )
...
* Add update(priority: ConstraintPriority) method
* Fix copy-paste error
2017-10-13 22:33:36 +13:00
Benjamin Chrobot
a07ef8b04c
Add support for UILayoutPriority as priority target. ( #466 )
...
* Add support for UILayoutPriority as priority target.
* Fixed for tvOS
2017-10-13 22:32:30 +13: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
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
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
556536859e
Fix bug in constraint maker duplicating constraints
2016-12-26 01:00:44 +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
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
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