Skip to content

Instantly share code, notes, and snippets.

@laevandus
Created September 28, 2019 12:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laevandus/809d5e3c4e2dcf269a6cf67765f54fa4 to your computer and use it in GitHub Desktop.
Save laevandus/809d5e3c4e2dcf269a6cf67765f54fa4 to your computer and use it in GitHub Desktop.
import SwiftUI
struct ContentView: View {
var body: some View {
NavigationView {
VStack(spacing: 8) {
Text("Hello World")
NavigationLink("Go to Detail View", destination: DetailView())
}.navigationBarTitle(Text("View 1"))
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment