All Versions
Latest Version
Avg Release Cycle
97 days
Latest Release
1871 days ago

Changelog History

  • v4.0.0 Changes

    May 10, 2019

    ๐Ÿ‘ This version adds support for Swift 5

  • v3.1.0

    September 14, 2018
  • v3.0.4

    February 08, 2019
  • v3.0.3

    February 08, 2019
  • v3.0.2

    May 22, 2018
  • v3.0.1 Changes

    November 22, 2017

    ๐Ÿš€ This release comes entirely from @corujautx

    ๐ŸŽ Discontinuation of the support for macOS < 10.10 : The reason I did this is because Cartography 3.0 makes use of the 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 sense to support 10.9 because Cartography is already targeted to iOS 8.0 onwards which supports this new API. This should "fix" #274.

    ๐Ÿ‘ Extending support to NSLayoutGuide : A missing feature in the release of Cartography 3.0 was the support of NSLayoutGuides in macOS. This is now supported!

    ๐Ÿ‘Œ Improvements to insetting edges : I added a more expressive way to inset edges in expressions. The way you would currently do this would be expressing view.edges == inset(view.superview!.edges, 10) which would now can also be expressed by view.edges == view.superview!.edges.inseted(by: 10) which makes a lot more expressive.

    ๐Ÿ‘Œ Supporting other layout guides included in UIView : UIView also includes references to other layout guides that are used to define standard layout margins or readable content margins. These now can be used in Cartography by expressing for example: view.edges == view.superview!.readableContentGuide.edges

  • v3.0.0 Changes

    October 31, 2017

    Now you can pass in layout guides to constrain - so code like:

    constrain(view) { view in == vc.topLayoutGuideCartography}

    should change to:

    constrain(view,\_topLayoutGuide) { view, guide in == 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

  • v2.1.0 Changes

    October 18, 2017

    โž• Adds support Safe Area Layout - by @yysskk - #267

  • v2.0.0

    September 13, 2017
  • v1.1.0

    March 29, 2017