You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a convenience, we could also supply a constant that means "the superview of the view to the left of the ==:
innerView.anchors([.width,.centerX,.top])==Anchorage.Superview() // name TBD
Question: would this work with operators that we use to inset/offset things? I think probably not, just to simplify things. We already provide verticalAnchors, horizontalAnchors, edgeAnchors, and centerAnchors for cases where you would want to pin common combinations with an inset/offset. So, I think this should be a compilation error:
Not sure if that's the right term for it, but this idea is inspired by SnapKit, which can do this:
I was thinking that an Anchorage-like way to do that would be something more like this:
As a convenience, we could also supply a constant that means "the superview of the view to the left of the
==
:Question: would this work with operators that we use to inset/offset things? I think probably not, just to simplify things. We already provide
verticalAnchors
,horizontalAnchors
,edgeAnchors
, andcenterAnchors
for cases where you would want to pin common combinations with an inset/offset. So, I think this should be a compilation error:The text was updated successfully, but these errors were encountered: