IBOutletRewriter

Swift 5.1 Build Status codecov

Overview

@IBOutlet code formatter using SwiftSyntax.

Requirements

Swift 5.1+
Xcode 11.0+ beta

How to use

Installation

Run below command

$ make install
$ IBOutletRewriter help

Available Commands

dry-run --path <file-path>

Dry-run for rewriting IBOutlet declaration

help

Display general or command-specific help

run --path <file-path>

Rewrite IBOutlet declaration

Examples

private as default

[email protected] weak var button: UIButton!
[email protected] private weak var button: UIButton!

weak as default

[email protected] private var button: UIButton!
[email protected] private weak var button: UIButton!

No private(set)

[email protected] private(set) weak var button: UIButton!
[email protected] private weak var button: UIButton!

TODOs

  • Support executing run to all files in directory
  • Support yml file for customized configuration
  • Better installation way

Acknowledgements

Iboutletrewriter

@IBOutlet code formatter using SwiftSyntax

Iboutletrewriter Info

⭐ Stars 71
🔗 Source Code github.com
🕒 Last Update 8 months ago
🕒 Created 3 years ago
🐞 Open Issues 0
➗ Star-Issue Ratio Infinity
😎 Author kitasuke