Skip to content

1.0.5

Compare
Choose a tag to compare
@iserbius iserbius released this 12 Sep 10:00
· 1 commit to develop since this release

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)