3 ms·
Re: avoiding IB, https://github.com/SnapKit/SnapKit https://github.com/SnapKit/SnapKit is a lifesaver, a lightweight DSL that nearly 1-to-1 wraps around AutoLay
by g09980 9y ago
Re: avoiding IB, https://github.com/SnapKit/SnapKit https://github.com/SnapKit/SnapKit is a lifesaver, a lightweight DSL that nearly 1-to-1 wraps around AutoLayout APIs.
- dep_b 9y agoTried it, didn't really like the syntax but Cartography has some performance problems so at the moment I'm back to hand rolled wrappers that are somewhat leaky but a lot less verbose and more readable: Constraint.space(imageView, .horizontally, to: textView, distance: 8) I can imagine going back to SnapKit though. It really did what it should do.