If we talk about memory leaks, the first thing we rush to check is the retain cycle. To avoid this scenario we declare properties or capture self as weak.

#programming #xcode #swift #ios

When to Use Strong References Over Weak References in Swift
1.45 GEEK