Constrainable Versions Save

simple declarative autolayout µframework based on Swift 4 KeyPath

1.0.1

5 years ago

Added convenience centering constraint:

aView.activate( constraint(centerIn: someView) )

1.0

5 years ago

Added shorthand support to avoid writing the full KeyPaths!

Instead of:

constraint(\.topAnchor, to: \.bottomAnchor, of: someView)

now you can write:

constraint(.top, to: .bottom, of: someView)

with autocomplete!

0.1.8

5 years ago

Removed single argument methods, added variadic instead

0.1.7

6 years ago

Added a bind function to put a constraint in relation with a view without activating the constraint

0.1.6

6 years ago

Added the possibility to name your constraints for debugging (or filtering)

0.1.5

6 years ago

Added support for baseline anchors and constraining to CGSize. Also, "constant"constraints (width, height and sizeTo) now support being multiplied.