Hacker GitHub

← All repos

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

Mentions per year 7 mentions · busiest year 2014 (4)
20082026
  1. …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
  2. 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
  3. 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…
  4. Try this: https://github.com/Masonry/Masonry
  5. …It might be right for you if you want easier programatic use than NSLayoutConstraints provide. https://github.com/Masonry/Masonry
  6. …frameworks out there to make writing NSLayoutConstraints much more sensible. For example [1] [1] https://github.com/Masonry/Masonry
  7. 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