Closed miensol closed 9 years ago
I was thinking about this type of constraints and an idea came to my mind. What do you think of settings a default with
value i.e
<Constraint on="top" constant="50"/>
would create a constraint equivalent to
<Constraint on="top" constant="50" with=":superview" />
.
@NOtherDev @KlimczakM @mgamer @danielmakurat
What do you think?
A princple of least surprise suggests that we should use :superview in suche case I suppose
If we use a constraint such as:
<Constraint on="top" constant="50"/>
an exception with very meaningful message is thrown:
"NSInternalInconsistencyException", "Unexpected use of internal layout attribute"