Visual Binary Trees with Swift 3 Playgrounds
Visual Binary Trees with Swift 3 Playgrounds
Blogs
- Visual Binary Trees with Swift 3 Playgrounds: Introduction
- Visual Binary Trees with Swift 3 Playgrounds, Part I
Features
- Easy visualization of arbitrary Binary Trees
- Works with trees implemented both as reference types and as Swift enums
- Multiple visual tree layouts, support for layouts customization
- A standalone playground, ready to run in Xcode and in Swift Playgrounds for iPad
- Written in latest Swift 3 / Xcode 8
TODOs
- A version as an embeddable framework under MIT license
- [ ] TBD
Docs
Initial docs, generated with jazzy and hosted by GitHub Pages.
Usage
1) Download or Clone the repository
$ git clone https://github.com/akpw/VisualBinaryTrees
3) Open the playground in Xcode
bash
$ cd VisualBinaryTrees
$ open VisualBinaryTrees.playground -a Xcode-beta.app
4) Optionally, you can also switch to the VisualBinaryTreeApp
folder and open & run the included sample app:
$ cd VisualBinaryTreeApp
$ open VisualBinaryTree.xcodeproj -a Xcode-beta.app
Requirements
- latest Xcode 8
- iOS9 (requires iOS10 to run in the Swift Playgrounds for iPad)