how to use transformEnvironment(_:transform:)?

Raj was mentioning about this inert modifier for writing conditional writing environment. Any help on this?

how to use transformEnvironment(_:transform:)?
 
 
Q