Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

environmentObject-example

SwiftUI EnvironmentObject

When to Use @EnvironmentObject:

– when you need to listen to changes and updates in an ObservedObject

– and you’d have to pass an ObservedObject through several views that don’t need this object before it reaches the view where you need access to the object

Simulator Screenshot - iPhone 15 Pro - 2024-06-21 at 11 32 29

About

SwiftUI EnvironmentObject

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages