Agenda
- Activity: Array Concepts
- Participate in a brief full-class Kahoot! to check your knowledge of yesterday’s lesson.
- Concept: Abstraction Using Lists
- How can we use arrays to build a user interface in SwiftUI without repetitive code?
- 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
- In your portfolio, share your progress with the embedded exercises and then briefly respond to the reflection questions provided.
- Additionally, please complete the mini-lesson on Structures vs. Classes and share progress in your portfolio, being certain to respond to the knowledge check questions.