Skip to content

Instantly share code, notes, and snippets.

@hrvolapeter
Created September 9, 2020 20:02
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/586df13d28575b6ebf61a15062612c3e to your computer and use it in GitHub Desktop.
Save hrvolapeter/586df13d28575b6ebf61a15062612c3e to your computer and use it in GitHub Desktop.
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