Skip to content

Instantly share code, notes, and snippets.

View ohitsdaniel's full-sized avatar

Daniel Peter ohitsdaniel

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