Cartography v3.0.0 Release Notes

Release Date: 2017-10-31 // almost 4 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 (or NSView in macOS), UILayoutGuide and UILayoutSupport as constrainable elements, represented by the protocol LayoutElement. ๐Ÿ‘

    The credit goes to @corujautx