An environment is a storage container for potentially any information that multiple views need to function.
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/25836622-your-second-ios-swiftui-app/lessons/23
An environment is a storage container for potentially any information that multiple views need to function.
The versión of the App that you use in this episode is not the same. Yo use UIImage in the Library instead of Image, like the rest of the course.
For anybody stuck with the UIImage thing, just use Image. Seems like this video may need some update
This was the most frustrating thing! Thanks.
I just ran into the same problem. I believe it should read:
images[book] = image