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
For example, when we want to layout a view with respect to it's superview we usually have to explicitly pass in the view which doesn't look as readable
Given a viewA and a subview viewB that we're trying to make the top match
// viewA has no superview
viewA.applyLayout([
.matchTopToParent(withOffset: 10.0)
])
We would be saying "match the top of viewA to nil with an offset of 10".
If a view has no superview and someone calls matchTopToParent then I would expect this method to either throw an exception or perform a no-op.
What do you think?
For example, when we want to layout a view with respect to it's superview we usually have to explicitly pass in the view which doesn't look as readable
Given a
viewA
and a subviewviewB
that we're trying to make the top matchThis could be better expressed by inferring the superview relationship:
The text was updated successfully, but these errors were encountered: