Cartography v3.0.0 Release Notes
Release Date: 2017-10-31 // over 6 years ago-
Now you can pass in layout guides to
constrain
- so code like:constrain(view) { view in view.top == vc.topLayoutGuideCartography}
should change to:
constrain(view, vc.car\_topLayoutGuide) { view, guide in view.top == guide.bottom}
๐ This adds more flexibility as you can also now constrain to the top/height attributes of an
UILayoutSupport
.๐ The whole idea for 3.0 is to unify
UIView
(orNSView
in macOS),UILayoutGuide
andUILayoutSupport
as constrainable elements, represented by the protocolLayoutElement
. ๐The credit goes to @corujautx