SnapKit/Masonry
View on GitHub ↗ ★ 18,114 Objective-C
Harness the power of AutoLayout NSLayoutConstraints with a simplified, chainable and expressive syntax. Supports iOS and OSX Auto Layout
7 mentions on Hacker News by 7 people: 0 stories, 7 comments · first 2014-09-11 · latest 2018-10-15
20082026
-
…to use Warning: you MUST NOT do this for UITableViewCell/UICollectionViewCells’ contentViews. https://github.com/SnapKit/Masonry/issues/492
comment by aaaaaaaaaab · 2018-10-15 · in Building DSLs in Swift -
And Masonry, if you're still on Obj-C (like me): https://github.com/SnapKit/Masonry [box mas_makeConstraints:^(MASConstraintMaker* make) { make.width.height.equalTo(50); make.center.equalTo(self.view); }];
comment by aaronbrethorst · 2016-03-08 · in Stevia: Human-readable auto-layout in code -
We've been using Masonry ( https://github.com/SnapKit/Masonry ), the predecessor to SnapKit, on a pretty large Objective-C project for the last year and a half. We do have some constraints in XIBs but lots in code, too. It's been great and…
comment by jurip · 2015-06-27 · in Cartography: Declarative Auto Layout in Swift -
Try this: https://github.com/Masonry/Masonry
comment by jray · 2014-10-19 · in Show HN: Griddle – Android-like layout containers for iOS -
…It might be right for you if you want easier programatic use than NSLayoutConstraints provide. https://github.com/Masonry/Masonry
comment by emkman · 2014-10-15 · in AsyncDisplayKit – iOS framework that keeps complex user interfaces responsive -
…frameworks out there to make writing NSLayoutConstraints much more sensible. For example [1] [1] https://github.com/Masonry/Masonry
comment by lpsz · 2014-09-11 · in The Curious Case of iPhone 6+ 1080p Display -
It might be too late for your project, but I'd highly recommend using Masonry ( https://github.com/Masonry/Masonry ) for Autolayout. It's a DSL for specifying constraints that is far better than Apple's NSConstraint API and constraint…
comment by interpol_p · 2014-09-11 · in The Curious Case of iPhone 6+ 1080p Display