🎉 Welcome to Day 16 of #100DaysOfiOS!In this lesson, we focus entirely on Classes in Swift — how they work, how they behave in memory, and why they exist.
Classes in Swift are reference types, which means they behave very differently from structs. Understanding this difference is crucial before moving into app architecture, shared state, and SwiftUI view models.
📘 What you’ll learn in this video:
* What classes are in Swift
* How to define and initialize a class
* Creating and using class instances
* Reference semantics (shared objects)
* Why let instances of classes can still mutate
* Identity vs equality (=== explained)
* Methods inside classes
🧠 Why this matters
Classes are used when shared mutable state and identity are required. If you don’t understand reference semantics clearly, bugs become very hard to track later. This lesson gives you the correct mental model early.
🚀 Next Lesson:
Structs vs Classes — Value Types vs Reference Types (When to Use What)
🙌 Join the Challenge
Follow the full series using #100DaysOfiOSSubscribe and turn on notifications so you don’t miss upcoming lessons!
#Swift #SwiftUI #iOSDevelopment #LearnSwift #100DaysOfiOS #SwiftProgramming #iOSDev