Anton Bukov has released a library which ports the NSLayoutAPI added with iOS 9 to iOS 7, and 8 called MissingAnchors.
This helps to maintain backwards compatibility with your code as MissingAnchors adds all the anchors within NSLayoutAnchor, and also adds a couple more anchors – sizeAnchor, and edgesAnchor to the view.
There are also a number of additional methods to make it easier to work with anchors. The additional anchors, and anchor methods will enhance iOS 7 and up.
You can find MissingAnchors on Github here.
A nice implementation of NSLayoutAnchor to iOS 7+ with some extra additions.
Original article: Open Source Library Bringing iOS 9’s NSLayoutAnchor To iOS 7+ With Extra Features
©2016 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.