Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/dnadoba/Tree into main
Browse files Browse the repository at this point in the history
  • Loading branch information
dnadoba committed Apr 3, 2021
2 parents bae4dc8 + 1cce23b commit d1af329
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Tree - general tree data structure, tree diffing, NSOutlineView and SwiftUI support
## This project uses `@resultBuilder` and requires Swift 5.4 or higher (e.g. Xcode 12.5)
This package primarily includes a general tree data structure.
It also includes a tree diffing algorithm and `OutlineViewTreeDataSource` that allows to use Swift value types with `NSOutlineView`
A demo App can be found in the `Tree macOS` folder and the `NSOutlineView` Playground with support for drag and drop, undo/redo and animations.
Expand All @@ -17,6 +16,7 @@ A demo App can be found in the `Tree macOS` folder and the `NSOutlineView` Playg
}
```
With the help of `@resultBuilder` you can create a `TreeNode` like this:
> Note: `@resultBuilder` requires Swift 5.4 or higher (e.g. Xcode 12.5)
```swift
let treeNode = TreeNode("root node") {
Expand Down

0 comments on commit d1af329

Please sign in to comment.