Created
September 9, 2020 20:02
-
-
Save hrvolapeter/586df13d28575b6ebf61a15062612c3e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import Foundation | |
class NoteListViewModel: ObservableObject { | |
@Published var notes = [ | |
NoteDetailView.ViewModel.init(note: Note.init(id: "0", title: "Note 0", createdTime: .init(), content: "Content of note 0", userId: "0", deleted: nil, parentId: nil, tags: ["tag 1"])), | |
NoteDetailView.ViewModel.init(note: Note.init(id: "1", title: "Note 1", createdTime: .init(), content: "Content of note 1", userId: "0", deleted: nil, parentId: nil, tags: ["Tag 1"])) | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment