Actually, Apple's "autolayout" is Cassowary. It is kind of inconvenient to use as is. However there are some very nice libraries. One I have used on a couple iOS projects is called PureLayout. https://github.com/PureLayout/PureLayout It has nice methods like aView autoAlignAxis: AxisHorizontal toSameAxisOfView: anotherView or aView autoCenterInSuperviewWithInsets: layoutInsets as to license: "The original implementation in OTI Smalltalk is in the public domain;" http://constraints.cs.washington.edu/cassowary/ If Thierry based his port on that version, it should be all good. I'm a fan of PureLayout - very easy to use.
On Oct 28, 2017, at 7:07 AM, Stephane Ducasse <stepharo.self@gmail.com> wrote:
Did you try? I always pay attention to things that should iterate a while and stabilise. Now I may be wrong. I have cassowary on my machine. I worked long time on constraints and I thought that apple has a better model with anchor and rubber band.
Stef
On Sat, Oct 28, 2017 at 12:36 PM, Jan Vrany <jan.vrany@fit.cvut.cz> wrote:
On Sat, 2017-10-28 at 10:48 +0200, Stephane Ducasse wrote:
Pavel I do not think that cassowary is good for us.
Why?
Jan
On Sat, Oct 28, 2017 at 2:37 AM, Todd Blanchard <tblanchard@mac.com> wrote:
Does that load as part of Bloc?
On Oct 27, 2017, at 12:59 PM, Pavel Krivanek <pavel.krivanek@gmail. com> wrote:
Maybe we should check cassowary
https://croisant.net/blog/2016-02-24-ui-layout-constraints-part-1/# ui-constraints
2017-10-27 19:13 GMT+02:00 Stephane Ducasse <stepharo.self@gmail.co m>:
Hi
I was wondering if there is a layout that we can use to propose alternate placing layout for widgets in spec?
Like
attached to the left 10pixels rubber band box or fixed size box 10pixels attached to the right.
Stef