In this tutorial I explore Environment Variables in SwiftUI and use the documentation to learn what they are and how to use them.
I will be exploring the @Environment propertyWrapper and will read the documentation to learn how to apply it.
In the process I'll explore some practical examples of both reading the current environment, but also be able to change certain environment values for specific views.
Table of Contents:
0:00 Introduction
3:22 Our First Environment Variables
11:46 Environment Modifiers
16:57 PresentationMode, bindings and Wrapped values
Starter Project Files:
http://www.createchsol.com/StarterPro...
Completed Project:
https://github.com/StewartLynch/Envir...
******* Download my StewartLynch YouTube Channel Application - Free **********
https://stewartlynch.gumroad.com/l/obsjz
Video References:
Big Nerd Range Blog on Class Sizes
https://www.bignerdranch.com/blog/des...
Property Wrappers Video
• SwiftUI Property Wrappers Version 2
SwiftUI Toolbar Video
• SwiftUI Toolbar API
Other References:
Stewart Lynch's YouTube Channel:
/ stewartlynch
CreaTECH Solutions Website:
https://www.createchsol.com
Stewart Lynch's GitHub:
https://github.com/StewartLynch