Some more constraint updates:
- When you do not want the Apple standard 8 pt gap between two views,
atanddockhave a newtightproperty, which can be used like this:
at(this_view).tight.top = at(the_other_view).top
dock(this_view).tight.below(the_other_view)
- Since views are in their superviews' coordinates, it can be hard to align views that are in different branches of the view hierarchy. Added a way to go via the screen coordinates (using
ui.convert_point):
at(this_view).top = at(the_other_view).top + screen_x
Alternatives here are screen when you have a point (like center) and screen_x/screen_y for single values like in the example above.
- Less general, but useful for my project, attributes that react to scrolling of ScrollViews and TableViews:
at(this_tableview).content_y = at(that_scrollview).content_y
Options here are content_offset for the overall scroll position, or content_x/content_y for just the one dimension.