
Login / Logout Flow: SwiftUI and EnvironmentObject
EnvironmentObject is useful when you want to create a dependency in a higher component of the layout tree and use it on a lower component without having to pass it down the tree through every child component.