Yakov Manshin

Intermediate Memory Management in Swift

ARC, References & Retain Cycles

After I covered the most essential questions of memory management in general, it’s time to have a look at the tools offered in Swift specifically.

In this video, I cover Automatic Reference Counting (the implementation of the reference counting technique, used in Swift and Objective-C), explain retain cycles (and how to fix them), and highlight the differences between types of references (strong, weak, and unowned).

More