How can I load state from en EnvironmentObject in SwiftUI? – Ios swift
So I am working on a view where I want to load state from an EnvironmentObject which acts something like a database. I would like to achieve something like this: class MyDB: ObservableObject { func getName(_ id: RecordID) -> String…