Environment:

Have been watching 'Data Flow through SwiftUI' https://developer.apple.com/videos/play/wwdc2019/226/

Can the Environment in Swift UI be used in place of singleton models eg. Like AppState, Models data used in several different tabs in tabbed application. So where traditionally it would either be held by Appdelegate (not recommended but still done) or have Singleton that holds onto these... we can keep it in the Environment?


or


Does it work as persisted information only in a view's hierarchy