SwiftUI and the Missing Environment Object

Using ViewModifiers to fix another major issue in SwiftUI development.

Michael Long
Published in
6 min readOct 7, 2019

--

SwiftUI provides us with a quick and easy way to pass models and services down the View hierarchy, the EnvironmentObject.

Just add your model or service to your view as an environmentObject view modifier, and any child view that’s interested can use…

--

--

Michael Long
The Startup

I write about Apple, Swift, and SwiftUI in particular, and technology in general. I'm also a Lead iOS Engineer at InRhythm, a modern digital consulting firm.