Agenda

  1. Activity: Array Concepts
    • Participate in a brief full-class Kahoot! to check your knowledge of yesterday’s lesson.
  2. Concept: Abstraction Using Lists
    • How can we use arrays to build a user interface in SwiftUI without repetitive code?
  3. Concept: Structures vs. Classes
    • What is the difference between a value type and a reference type?

    TIP

    While this lesson may seem purely academic – we’ll apply this concept in our very next class – when you learn about separation of concerns and how to use an array within a view model.

    A view model in a SwiftUI app is always declared as a class.

Things to do before our next class