-
Reference and Value Types in Swift
Learn about the different memory mechanisms of reference and value types for a better intuition of when to use them.
-
ARC and the Reference Counting System
Learn about how reference counting works, what retain cycles are, and how iOS/macOS handles memory with Automatic Reference Counting (ARC).
-
Understanding Memory Problems
Learn about the different memory problems developers commonly face when building an app, and what safe practices can be made to solve these problems.
-
Detecting and Fixing Memory Leaks
Unmanaged memory leaks cause sudden and unexpected crashes. Learn how to detect and fix memory leaks by identifying them in code or by using Instruments.
-
Memory Implications of Swift Closures
Swift closures can easily cause a crash when poorly implemented. Learn about how Swift closures can affect memory and what practices can be done to promote safety.
-
Safe Practices with Delegates
Delegation is one of the most common patterns that most developers have used when building iOS/macOS apps. Learn safe practices when using delegates to avoid leaks or unexpected crashes.
Course Requirements
- Mac running macOS Monterey 12.5 or later, Xcode 14 (Swift 5.7)
Course curriculum
-
-
Welcome
-
Resources
-
Where to Get Help?
-
-
-
Introduction from Mark Moeykens
-
-
-
Memory Basics
-
Value Types
-
Playgrounds: Value Types
-
Word Review: Value Type
-
Reference Types
-
Playgrounds: Reference Types
-
Word Review: Reference Type
-
Demonstration: Value Types & Reference Types in Xcode
-
Summary
-
Swift Language Reference: Value and Reference Types
-
Remember This!
-
-
-
Memory Leaks Introduction
-
What You Are Going To Learn
-
Removing Reference Types from Memory
-
Automatic Reference Counting (ARC)
-
Demonstration: ARC
-
Word Review: Allocate
-
Word Review: Deallocate
-
Word Review: Initialization
-
Word Review: Deinit
-
Dependencies: Children Can Cause Trouble
-
Demonstration: Dependencies
-
Sad Orphans
-
Demonstration: Retain Cycles
-
Using Instruments: Leak Profiler
-
How to Fix a Retain Cycle with the 2-Step Method
-
Demonstration: Fixing Retain Cycles
-
Playgrounds with Retain Cycle
-
Overview of the Strong, the Weak and the Unowned
-
Example of the Strong, the Weak and the Unowned
-
Would You Rather Be Weak or Unowned?
-
Playgrounds: Create Retain Cycles
-
Word Review: Retain Cycle
-
Summary
-
Remember This!
-
-
-
Introduction
-
What is a Closure?
-
Demonstration
-
Closures Are Reference Types
-
Word Review: Closure
-
Capturing Values
-
Capture Lists
-
Demonstration
-
More on Capture Lists
-
Word Review: Capture List
-
Summary
-
Remember This!
-
-
-
Introduction
-
What You Will Learn
-
Reusable Popup Project
-
About this course
- Free
- 79 lessons
- 1.5 hours of video content