MagicIB

0.0.1

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

What's New

0.0.1

2022-09-12T16:17:21Z

First release

MagicIB

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

Language:Swift License:MIT Latest Release Platform Compatibility Twitter

Installation

$ brew install ryu0118/magicib/magicib

or

$ brew tap ryu0118/magicib
$ brew install --build-from-source 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

Description

  • Swift Tools 5.6.0
View More Packages from this Author

Dependencies

Last updated: Sat Mar 16 2024 13:59:17 GMT-0900 (Hawaii-Aleutian Daylight Time)