Simple Xcode / SwiftUI example of changing views based on a variable value
Example of changing SwiftUI views based on a variable