All Projects → kitasuke → Iboutletrewriter

kitasuke / Iboutletrewriter

Licence: mit
@IBOutlet code formatter using SwiftSyntax

Programming Languages

swift
15916 projects

Labels

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].