ScottRobbins / DeclarativeLayout

A declarative, expressive and efficient way to lay out your views.
MIT License
5 stars 0 forks source link

Remove view and superview #25

Closed ScottRobbins closed 5 years ago

ScottRobbins commented 5 years ago

This removes passing the view and superview in the component closure. The reason for this is making it easier to use the framework by requiring less typing and not requiring snippets, etc which I was using.

This also shows how you might add some useful extensions to make referencing the view and superview easier, since it now isn't passed in the component closure.