Do you often forget [weak self]? Here’s a solution

In this post, Oleg Dreyman shares his approach to dealing with possible retain cycles and memory leaks. As a bonus, Oleg even provides Delegated, a tiny Swift library which encapsulates the approach described in the post.