EnvironmentModel in Document app - per Document?

I have a SwiftUI Document app that successfully creates multiple documents using a structure I took from a WWDC example. In this, the environment model is common to every app, so if I change something (e.g. a published variable setting) in one document it affects all open documents.

I have been trying to find an example where at least some of the published variables currently in the app level environment can be split out to be made document specific. i.e. only applicable to windows on that document, but still without having to pass them round to every view. Any pointers very welcome - haven't been able to find anything so far...

EnvironmentModel in Document app - per Document?
 
 
Q