The Environment
Note: In this episode, you may see the now-obsolete #if DEBUG macro, which used to be utilised for previews to run in the canvas. This is now no longer necessary, and you can safely ignore it. We’ve removed it from the project for convenience as well.
Learn about the Environment, an incredibly powerful feature in SwiftUI allowing you to gather important information about where your app is running, as well as respond.
Comments