Skip to content

Instantly share code, notes, and snippets.

View ohitsdaniel's full-sized avatar

Daniel Peter ohitsdaniel

  • Berlin, Germany
  • 19:14 (UTC +02:00)
View GitHub Profile
import SwiftUI
import Combine
import PlaygroundSupport
// MARK: Data Model
struct Book: Identifiable, Equatable {
let id: Int
}
// Direct changes to DataModel should propagate
struct FileTree {
let root: Folder
}
enum Node {
case folder(Folder)
case file(File)
}
struct Folder {