ScottRobbins / DeclarativeLayout

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

Mark all views held onto by framework as unowned #4

Closed ScottRobbins closed 6 years ago

ScottRobbins commented 6 years ago

Otherwise custom UIViews that had their own ViewLayout object would create a circular reference. It doesn't make sense for this object to exist when the view it holds onto doesn't, so it will crash in that scenario. If people end up having trouble debugging why things are crashing i'll switch to using preconditions as well to give better error messages.