This version adds support for Swift 5
Unclaimed project
Are you a maintainer of Cartography? Claim this project to take control of your public changelog and roadmap.
Changelog
A declarative Auto Layout DSL for Swift :iphone::triangular_ruler:
This version adds support for Swift 5
This release comes entirely from @corujautx
isActive property on constraints and no longer has views to attach to a context like in previous versions, as those contained traversal of view hierarchy to identify where to attach a constraint as previous APIs did. It makes no...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...
Adds support Safe Area Layout - by @yysskk - #267