Skip to content

Instantly share code, notes, and snippets.

@hrvolapeter
Created September 9, 2020 20:19
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 hrvolapeter/a8fd99d60c8ee795f36c1f582c42b75e to your computer and use it in GitHub Desktop.
Save hrvolapeter/a8fd99d60c8ee795f36c1f582c42b75e to your computer and use it in GitHub Desktop.
var body: some View {
NavigationView {
VStack(alignment: .leading) {
list
newNote
}
}
}
var newNote: some View {
NavigationLink(destination: NoteDetailView(vm: .newNote())) {
HStack {
Image(systemName: "plus.circle.fill")
.resizable()
.frame(width: 20, height: 20)
Text("New Note")
}
}.padding()
.accentColor(Color(.systemBlue))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment