Xcode – How to use EnvironmentObject in app file in SwiftUI
Is it possible to use EnvironmentObject in the app file for a new SwiftUI 2.0 project? I'm using the following code and I get the error: Fatal error: No ObservableObject of type Authentication found. A View.environmentObject(_:) for Authentication may be…