/swift-code-types-navigator

An experimental project that shows the types defined in a Swift code as expandable bubbles on a canvas.

Primary LanguageSwiftMIT LicenseMIT

Swift Code Types Navigator

An experimental project that shows the types defined in a Swift code as expandable bubbles on a canvas.

What it looks like (it's smooth in real-life):

Alt Text This is the result for the code of Canvas File Explorer for Mac.

How to use it:

Just run these two commands in Terminal from this project's root directory:
swift build
.build/debug/SwiftDiagramGenerator . <swiftFileOrFolderPath1> <swiftFileOrFolderPath2> ...

A tutorial post:

https://martinmitrevski.com/2018/03/16/swift-code-types-navigator

If you wish to work with the source code and hopefully contribute, here are some useful Swift Package Manager commands:

swift package clean
swift build creates a SwiftDiagramGenerator executable in .build/debug
swift build -c release creates a SwiftDiagramGenerator executable in .build/release
swift package update
swift test
swift package generate-xcodeproj

Initial contributors:

https://github.com/yoshimkd
https://github.com/ZdravkoN
https://github.com/martinmitrevski

Usage of other software:

swift-code-types-navigator depends on two open source projects:
Vis.js distributed under The MIT License and
Swift Abstract Syntax Tree distributed under the Apache License 2.0.

We're very grateful to have the ability to use these two amazing tools in the building of swift-code-types-navigator.