Injecting Dependencies with @EnvironmentObject
摘要
How do you share the same instance of an object between SwiftUI views without injecting it through all their common ancestors in the view hierarchy?