$ 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
.storyboardfiles.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 helpGenerate command
Using
defaultreporterUsing
dotreporterVisualize this graph online
Example on IBAnimatable demo app
or if you ave
graphvizinstalled you can open previewUsing
onlinereporterThis reporter open the graph on https://dreampuf.github.io/GraphvizOnline/
Convert graph to png
First use
dotreporter.Then you can install
graphvizusing HomebrewAnd finally launch the convertion using
dotcommand on your result fileor directly after
ibgraphlaunchXcode
Add a
Run Script Phaseto integrate IBGraph with XcodeRequirements
IBGraph requires Swift5.0 runtime. Please satisfy at least one of following requirements.
Swift 5 Runtime Support for Command Line Toolsfrom More Downloads for Apple DevelopersConfiguration
You can configure IBGraph by adding a
.ibgraph.ymlfile from project root directory.excludedincludedreporterdefault,dot,json,gmlandgraphml. Oronlineto open graph on default browser.