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
struct FileTree { | |
let root: Folder | |
} | |
enum Node { | |
case folder(Folder) | |
case file(File) | |
} | |
struct Folder { |
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
import SwiftUI | |
import Combine | |
import PlaygroundSupport | |
// MARK: Data Model | |
struct Book: Identifiable, Equatable { | |
let id: Int | |
} | |
// Direct changes to DataModel should propagate |