Side Table, Object Lifecycle, Unowned Refs | Advanced Memory Management (1) | Swift & iOS Basics

After a few weeks since my previous memory-management video (   • ARC, References & Retain Cycles | Intermed...  ) came out, I’m having a look at advanced-level questions—because that’s where the most fun is! This time, I’m covering the difference between unowned (safe) and unowned (unsafe) references, explaining the side table, and diving into the details of object lifecycle. Support the Swift Bird by… • …joining as a member:    / @thecodebird   • …becoming a patron: https://url.ykvm.com/patreon • …buying me a coffee: https://url.ykvm.com/bmac More on Memory Management: • Swift & iOS Basics (playlist):    • Fundamentals of Software Development in Sw...   • Essential Memory Management:    • What Memory Is & Why Manage It | Essential...   • Intermediate Memory Management:    • ARC, References & Retain Cycles | Intermed...   • Advanced Memory Management (Part 2):    • Autorelease Pool, Lazy Initialization & Mo...   Links: • The one link to rule them all—reference counting source, with comments (explains the side table, +1s shenanigans, and object lifecycle): https://github.com/apple/swift/blob/m... • Unowned (safe) vs. unowned (unsafe): https://stackoverflow.com/questions/2... • Weak references before Swift 4 (and side tables): https://mikeash.com/pyblog/friday-qa-... • Weak references in Swift 4 (with side tables): https://mikeash.com/pyblog/friday-qa-... • Side tables with pictures: https://web.archive.org/web/202403050... Chapters: • 0:00 Intro • 1:10 Unowned (Safe) vs. Unowned (Unsafe) • 3:38 Side Table • 7:56 Object Lifecycle • 11:23 Outro The Swift Bird, a Yakov Manshin production 🎞️ #Swift #memorymanagement #softwareengineering