PLAY PODCASTS
Using the EnvironmentObject to make data available to SwiftUI views
Season 2 · Episode 15

Using the EnvironmentObject to make data available to SwiftUI views

More than likely you have more than one view in your SwiftUI based application. If that is the case then you probably need to share data across those views and always have them displaying the latest data right? That's where the environment object comes in

Compile Swift Podcast

March 22, 202111m 20s

Audio is streamed directly from the publisher (pdcn.co) as published in their RSS feed. Play Podcasts does not host this file. Rights-holders can request removal through the copyright & takedown page.

Show Notes

More than likely you have more than one view in your SwiftUI based application. If that is the case then you probably need to share data across those views and always have them displaying the latest data right? That's where the environment object comes into play, this makes it possible to do just that. I'll walk through the steps on how I recently implemented it in an application.

I will also be releasing a video soon, so if you are interested and want to know when that comes out head over to compileswift.com/contact and let me know.

Say thanks, I love coffee

https://www.buymeacoffee.com/pwcom

Let’s connect Twitter:

Web

Twitter

Instagram

I would appreciate it if you subscribe, share with friends on your social platform of choice. Thanks!

--- Send in a voice message: https://anchor.fm/compileswift/message Thanks to our monthly supporters
  • Adam Wulf
★ Support this podcast on Patreon ★

Topics

appleswiftdevelopmentsoftwareprogrammingiosmacosipadoswatchOSmobileappsapp developmentmobile apps