Module 2 of 3 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)
Introduction • Start
Buttons & Actions
2
SwiftUI State Lesson (10 mins)
SwiftUI State • Start
3
SwiftUI Bindings Lesson (4 mins)
SwiftUI Bindings • Start
4
Strings Lesson (2 mins)
Strings • Start
5
Variables Lesson (9 mins)
Variables • Start
6
Intro to App Architecture Lesson (4 mins)
Intro to App Architecture • Start
7
Create a Model Lesson (11 mins)
Create a Model • Start
Conclusion
Quiz: SwiftUI Data

Next module

iOS & Swift
Your First iOS App: Coding in Swift
Learn core Swift language features while building and testing Bull’s Eye app logic. You will use the Swift... more

Instructors

Catie Catterwaul

Contributors

Catie Catterwaul

Instructor

Adriana Kutenko

Illustrator

Pinal Naik

Final Pass Editor

Over 300 content creators. Join our team.