/SwiftFormat

A code library and command-line formatting tool for reformatting Swift code

Primary LanguageSwiftMIT LicenseMIT

fork from SwiftFormat to support DeclareLayoutSwift

Get Xcode editor extension

  1. use EditorExtension/SwiftFormat for Xcode.app
  2. or build SwiftFormat for Xcode scheme

Install

  1. drag SwiftFormat for Xcode.app to Applications folder
  2. run it once
  3. active this Xcode source editor(System preferences->Extensions->Xcode source editor)
  4. set hot key in Xcode Editor menu (optional)