Thursday, January 18, 2018

Memory 3 - Fixing Memory Leaks in Closures with Capture List (iOS, Xcode...

Swift Memory Mastery Series - Part 3



Don't worry if you don't know what a closure or capture list is. This video will teach you.



You will learn:

* What closures are

* How to pass data into closures

* How closures can obtain values outside of themselves

* How to explicitly pass data into closures

* How to change the strength of the value coming into a closure to weak or unowned

* How to create a memory leak (retain cycle) with closures (very common)

* How to fix closure memory leaks with capture lists

* Understanding memory leaks in closures



No comments:

Post a Comment

Note: Only a member of this blog may post a comment.

SwiftUI Search & Filter with Combine - Part 3 (iOS, Xcode 13, SwiftUI, 2...

In part 3 of the Searchable video series, I show you how to use Combine in #SwiftUI for the search and filter logic connected to the searcha...