Skip to content

Releases: simoneconnola/Constrainable

Centering

16 Oct 12:49
Compare
Choose a tag to compare

Added convenience centering constraint:

aView.activate(
constraint(centerIn: someView)
)

Shorthand

16 Oct 10:49
Compare
Choose a tag to compare

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

15 Jun 11:07
Compare
Choose a tag to compare

Removed single argument methods, added variadic instead

Bind

25 May 11:06
Compare
Choose a tag to compare

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

Identifiers

25 May 10:35
Compare
Choose a tag to compare

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

Baselines and CGSize

25 May 09:41
Compare
Choose a tag to compare

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