What's the purpose of .environmentObject() view operator vs @EnvironmentObject?
问题 I'm attempting to crawl out of the proverbial Neophyte abyss here. I'm beginning to grasp the use of @EnvironmentObject till I notice the .environmentObject() view operator in the docs. Here's my code: import SwiftUI struct SecondarySwiftUI: View { @EnvironmentObject var settings: Settings var body: some View { ZStack { Color.red Text("Chosen One: \(settings.pickerSelection.name)") }.environmentObject(settings) //...doesn't appear to be of use. } func doSomething() {} } I tried to replace the