"==" operator now supports different view hierarchies!
1 - Different view hierarchies
Before the ==
wasn't working if views weren't on the same Z-index in the view hierarchy.
It was blind taking the first argument's superview.
Now the ==
operator is smart enough to grab the closest common ancestor 🤓
2 - Reflexivity
The way it was before, the ==
operator wasn't reflexive.
Meaning
view.Width == contentView.Width
contentView.Width == view.Width
were not generating the same constraint behind the hood.
Mathematically speaking this was quite misleading.
Thanks to fix we can write interchageably :
avatar.Top == photo.Top + 10
photo.Top + 10 == avatar.Top
3- Re-opening Layout([array]) overload
Some needed it for dynamic layout so it's back :)