Hacker News new | ask | show | jobs
by gorena 3904 days ago
Betteridge's law definitely applies here.

https://github.com/PureLayout/PureLayout

PureLayout is a fantastic library for layout on iOS. There's no weird operator overloading, or semantically odd DSLs. It just feels like Cocoa. It's very much "the missing autolayout API".

Everything just returns layout constraints, so if you need to alter the priority or activeness, just use whatever method you choose (i.e. ReactiveCocoa). Unlike IB, it's type safe, and fully annotated for Swift.

2 comments

Includes a cool breakdown of the Pros and Cons of the various options being discussed here:

https://github.com/PureLayout/PureLayout#purelayout-vs-the-r...

Never seen this library before but it looks very cool. Could be a great middle ground between laying out views with visual format and storyboards.