The call to environmentObject() returns a (modified) view, therefore you can chain the calls to put multiple objects into the environment. Example: let rootView.
swiftui-multiple-environment-objects
3925e8d270
swiftui multiple environment objects, swiftui multiple environment objects same type
Comments