Releases: simoneconnola/Constrainable
Releases · simoneconnola/Constrainable
Centering
Shorthand
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!
Variadic
Removed single argument methods, added variadic instead
Bind
Added a bind function to put a constraint in relation with a view without activating the constraint
Identifiers
Added the possibility to name your constraints for debugging (or filtering)
Baselines and CGSize
Added support for baseline anchors and constraining to CGSize. Also, "constant"constraints (width, height and sizeTo) now support being multiplied.