Created
September 9, 2020 20:19
-
-
Save hrvolapeter/a8fd99d60c8ee795f36c1f582c42b75e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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