Skip to content

Releases: Heads-and-Hands/auto-layout-sugar-ios

Add SPM support

04 Oct 06:43
Compare
Choose a tag to compare
1.0.6

Add SPM support

1.0.5

12 Sep 10:00
Compare
Choose a tag to compare

Add sugar for setContentHuggingPriority and setContentCompressionResistancePriority operations
Now we can use it in chains of view layout setup methods

view.hugging(250, axis: .horizontal)
view.hugging(.defaultLow, axis: .horizontal)
view.hugging(.less, than: view1, axis: .horizontal)

and

view.compressionResistance(250, axis: .horizontal)
view.compressionResistance(.defaultLow, axis: .horizontal)
view.compressionResistance(.less, than: view1, axis: .horizontal)

Current fixes and improvements

10 Sep 14:28
Compare
Choose a tag to compare

Add priority() method to Constraints - now we can wtite something like this:
viewATopConstraint.priority(<~viewBTopConstraint)
and viewATopConstraint priority becomes less than viewBTopConstraint.
Operators: <~ and ~>

Now we can use comparison operators in pinning side notation like this
view1.top(<<=10, to: view2)
and view1 top constraint becomes lessThanOrEqual to view2 top constraint with 10pt offset
Operators: <<= and >>=

Also, now we can write pinnig sides without offsets
view1.top(.bottom, of: view2)

Fix bug with center(x:y)

Fix warnings within unused results of configuration methods

04 Sep 08:23
Compare
Choose a tag to compare
1.0.2

Add discardableResult specifier to prepareForAutoLayout method

1.0.1

02 Sep 07:57
Compare
Choose a tag to compare
Add discardableResult specifier to constraint activate method

Release 1.0.0

23 Aug 07:59
e08d2b9
Compare
Choose a tag to compare
* Add base auto layout syntax sugar