SnapKit/Masonry ? reverse-engineered prompt

Reverse engineered prompt

Build me an Objective C layout helper library for iOS and macOS that makes Auto Layout feel much simpler and more readable.

I want a chainable syntax for creating constraints so I can write things like pinning a view to its superview, setting sizes, spacing, priorities, and relationships to other views without writing a bunch of verbose NSLayoutConstraint code. It should automatically turn off translatesAutoresizingMaskIntoConstraints when needed and add constraints to the right common parent for me.

Please include a small set of examples or demo screens showing common layouts, plus tests for the main constraint behaviors. Make the API feel clean and expressive, with support for equal, less than or equal, greater than or equal, offsets, insets, and priorities. It should work on both iOS and Mac OS X.

If anything is unclear, check current docs online and match the usual behavior of a modern Masonry style Auto Layout DSL.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab