$ ibgraph help
Available commands:
help Display general or command-specific help
generate Show graph (default command)
version Display the current version of ibgraph
Add a Run Script Phase to integrate IBGraph with Xcode
if which ibgraph >/dev/null; then
if which dot >/dev/null; then
ibgraph generate --reporter dot | dot -Tpng -o storyboards.png
else
echo "warning: dot from graphviz is not installed, check how to install here https://github.com/IBDecodable/IBGraph#convert-graph-to-png"
fi
fi
else
echo "warning: IBGraph not installed, download from https://github.com/IBDecodable/IBGraph"
fi
Requirements
IBGraph requires Swift5.0 runtime. Please satisfy at least one of following requirements.
IBGraph
A tool to create a graph representaton of your
.storyboard
files.Install
Using sources
Using Homebrew (swiftbrew)
If not already installed yet, install Swiftbrew with Homebrew
then type
Usage
You can see all description by
ibgraph help
Generate command
Using
default
reporterUsing
dot
reporterVisualize this graph online
Example on IBAnimatable demo app
or if you ave
graphviz
installed you can open previewUsing
online
reporterThis reporter open the graph on https://dreampuf.github.io/GraphvizOnline/
Convert graph to png
First use
dot
reporter.Then you can install
graphviz
using HomebrewAnd finally launch the convertion using
dot
command on your result fileor directly after
ibgraph
launchXcode
Add a
Run Script Phase
to integrate IBGraph with XcodeRequirements
IBGraph requires Swift5.0 runtime. Please satisfy at least one of following requirements.
Swift 5 Runtime Support for Command Line Tools
from More Downloads for Apple DevelopersConfiguration
You can configure IBGraph by adding a
.ibgraph.yml
file from project root directory.excluded
included
reporter
default
,dot
,json
,gml
andgraphml
. Oronline
to open graph on default browser.