MagicIB is a CLI tool that quickly and automatically generates Swift code from Interface Builder files.
Installation
$ brew install ryu0118/magicib/magicib
Usage
USAGE: magicib [<project-path>] [<ib-path>] [--output-dir <output-dir>]
ARGUMENTS:
<project-path> The root directory of the project containing the IB
files you want to convert to Swift
<ib-path> Path of the Interface builder file you want to
convert to Swift
OPTIONS:
-o, --output-dir <output-dir>
Output directory for files converted to Swift
-h, --help Show help information.
Example1
Current directory is the target iOS project
then run this.
$ magicib .
Example2
Specify the output directory for the generated Swift files.
then run this.
$ magicib . --output-dir ./output/
Example3
Generate Swift code from a single storyboard file.
MagicIB
MagicIB is a CLI tool that quickly and automatically generates Swift code from Interface Builder files.
Installation
Usage
Example1
Current directory is the target iOS project
then run this.
Example2
Specify the output directory for the generated Swift files.
then run this.
Example3
Generate Swift code from a single storyboard file.
then run this.