square / Paralayout

Paralayout is a set of simple, useful, and straightforward utilities that enable pixel-perfect layout in iOS. Your designers will love you.
https://medium.com/square-corner-blog/introducing-paralayout-d5ac09e93fb0
Apache License 2.0
790 stars 34 forks source link

Replace assertions in slice method with alert func #134

Open NickEntin opened 3 months ago

NickEntin commented 3 months ago

There are some valid use cases where you want to be able to slice more than the available width/height, such as when your content has a minimum size and your sizing rules allow for content to extend beyond the bounds if you view is sized beneath its ideal size. This replaces the assertions in the slice(...) method with alert functions consumers can place breakpoints for, following the pattern we use for view alignment issues.

Resolves #128