Skip to content

MagicIB is a CLI tool that quickly and automatically generates Swift code from Interface Builder files

License

Notifications You must be signed in to change notification settings

Ryu0118/MagicIB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MagicIB

MagicIB is a CLI tool that quickly and automatically generates Swift code from Interface Builder files.

IMG_0848

Language:Swift License:MIT Latest Release Platform Compatibility Twitter

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

スクリーンショット 2022-09-07 23 30 38

then run this.

$ magicib .

スクリーンショット 2022-09-07 23 38 01

Example2

Specify the output directory for the generated Swift files.

スクリーンショット 2022-09-07 23 52 31

then run this.

$ magicib . --output-dir ./output/

スクリーンショット 2022-09-07 23 52 56

Example3

Generate Swift code from a single storyboard file.

スクリーンショット 2022-09-08 0 00 33

then run this.

$ magicib ./Storyboards/HomeViewController.storyboard

スクリーンショット 2022-09-08 0 00 57

About

MagicIB is a CLI tool that quickly and automatically generates Swift code from Interface Builder files

Resources

License

Stars

Watchers

Forks

Packages

No packages published