0Pricing
Swift Academy · Lesson

How ARC Counts References

What ARC does at compile time, retain/release calls and object lifetimes.

Welcome

Automatic Reference Counting (ARC) manages class instance memory. Understanding how it counts references helps you write leak-free code.

What ARC Does

ARC tracks how many *strong* references point to each class instance. When the count reaches zero, it calls `deinit` and frees memory — automatically.

All lessons in this course

  1. How ARC Counts References
  2. Retain Cycles: Causes and Detection
  3. weak and unowned References
  4. Closure Capture Lists and [weak self]
← Back to Swift Academy