Read in this post how to define custom keys in the SwiftUI environment and have values globally accessible throughout the view hierarchy.
Read in this post how to define custom keys in the SwiftUI environment and have values globally accessible throughout the view hierarchy.