Skip to content

Instantly share code, notes, and snippets.

@azamsharp
Created December 31, 2020 19:05
Show Gist options
  • Save azamsharp/d5af2bc9cbe26f6aec9ecf6b7e4be316 to your computer and use it in GitHub Desktop.
Save azamsharp/d5af2bc9cbe26f6aec9ecf6b7e4be316 to your computer and use it in GitHub Desktop.
struct ViewB: View {
@Binding var rootActive: Bool
var body: some View {
VStack {
Spacer()
Text("View B")
.font(.largeTitle)
NavigationLink("Go to View C", destination: ViewC(rootActive: $rootActive))
Spacer()
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
.background(Color.orange)
.edgesIgnoringSafeArea(.all)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment