Introduction

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

In Lesson 2, you learned about how to implement MVVM with @State and @Observable. In this lesson, you’ll learn how to inject a view model object into the environment of the app or of a subtree of a view. You’ll also learn how to implement two-way binding between a view and a view model object so the view can modify values in the view model object.

Learning Objectives

You’ll learn how to:

See forum comments
Download course materials from Github
Previous: State Management in ViewModels Quiz Next: View Models & Environment Property Instruction