Module 2 of 2 in Your First iOS App: An App From Scratch

Your First iOS App: Data Flow in SwiftUI

Share
Save for later

Module outcomes

  • Add button actions and alerts to a SwiftUI view.
  • Use state and bindings to keep a SwiftUI interface in sync with data.
  • Move Bull’s Eye game logic into a model object.

Covered concepts

  • SwiftUI Button actions and alerts
  • State and bindings
  • String interpolation, variables, constants, and model structure

Module content

1
Buttons & Actions Lesson (4 mins)
IntroductionStart
Buttons & Actions
2
SwiftUI State Lesson (10 mins)
SwiftUI StateStart
3
SwiftUI Bindings Lesson (4 mins)
SwiftUI BindingsStart
4
Strings Lesson (2 mins)
StringsStart
5
Variables Lesson (9 mins)
VariablesStart
6
Intro to App Architecture Lesson (4 mins)
Intro to App ArchitectureStart
7
Create a Model Lesson (11 mins)
Create a ModelStart
Conclusion
Quiz: SwiftUI Data