This is a companion discussion topic for the original entry at https://www.raywenderlich.com/10527046-review-my-stuff/lessons/1
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/10527046-review-my-stuff/lessons/1
One thing I noticed in the video that didn’t get mentioned was the retain cycle in the HomeViewModel. As the delegate wasn’t weak, if a view controller owns the view model (which is usually the case) but that view controller is also the delegate and therefore retained by the view model, I believe it’ll result a retain cycle.
1 Like