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
Enjoy this info? Visit my Patreon page to support educators and artists.
My YouTube Channel
Need help with SwiftUI? Check out my products at: Big Mountain Studio Website
Thursday, January 18, 2018
Friday, January 12, 2018
Memory 2 - Finding and Fixing Memory Leaks (iOS, Xcode 9, Swift 4)
Swift Memory Mastery Series - Part 2
This video is packed with a lot of good info. You will learn:
* How Swift manages and allocates memory
* How Swift determines when it's ok to remove objects from memory
* Automatic Reference Counting (ARC)
* Dependencies and ARC
* Retain Cycles (Also known as: Retention Cycles or Circular References)
* Strong, Weak and Unowned References
* The Debug Memory Graph tool in Xcode
* Using Instruments Leak profiler to find memory leaks
This video is packed with a lot of good info. You will learn:
* How Swift manages and allocates memory
* How Swift determines when it's ok to remove objects from memory
* Automatic Reference Counting (ARC)
* Dependencies and ARC
* Retain Cycles (Also known as: Retention Cycles or Circular References)
* Strong, Weak and Unowned References
* The Debug Memory Graph tool in Xcode
* Using Instruments Leak profiler to find memory leaks
Saturday, January 6, 2018
Memory 1 - Value Types vs Reference Types (iOS, Xcode 9, Swift 4)
Learn the basics in this first video on Memory in Swift!
Subscribe to:
Posts (Atom)
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...
-
I couldn't find a tutorial on this so this is my documented journey into trying to figure out how to implement OAuthSwift into an iOS p...
-
This post visually shows the stack view's Alignment and Distribution property settings. There is also a section on resolving auto layou...
-
I had someone ask about aligning text within a TextField view and I didn't have a page in my book for this but added one just now. ...