11# 🛠 X-SwiftFormat
22
3- [ ![ ] ( https://img.shields.io/badge/MIT-License-0f73b4.svg )] ( ./LICENSE.md ) [ ![ ] ( https://img.shields.io/badge/swift-5.5 -0f73b4.svg )] ( https://swift.org/blog/swift-5-5 -released/ ) [ ![ ] ( https://img.shields.io/badge/docs-1.1.3 -0f73b4.svg )] ( ./DOCS.md )
3+ [ ![ ] ( https://img.shields.io/badge/MIT-License-0f73b4.svg )] ( ./LICENSE.md ) [ ![ ] ( https://img.shields.io/badge/swift-5.6 -0f73b4.svg )] ( https://swift.org/blog/swift-5-6 -released/ ) [ ![ ] ( https://img.shields.io/badge/docs-1.2 -0f73b4.svg )] ( ./DOCS.md )
44
55![ ] ( ./assets/readme/xsf_header.png )
66
77## Installation
88
99### Using Github
1010
11- [ ![ ] ( https://img.shields.io/badge/Download-1.1.3 -0f73b4.svg?logo=github )] ( https://github.com/ruiaureliano/X-SwiftFormat/releases/download/1.1.3 /x-swiftformat_1.1.3 .zip )
11+ [ ![ ] ( https://img.shields.io/badge/Download-1.2 -0f73b4.svg?logo=github )] ( https://github.com/ruiaureliano/X-SwiftFormat/releases/download/1.2 /x-swiftformat_1.2 .zip )
1212
1313### Using Cask
1414
15- ` brew install --cask x-swiftformat `
15+ ` brew install --cask x-swiftformat `
1616
1717## Usage
1818
2626
2727![ ] ( ./assets/readme/xsf_format.png )
2828
29- ** b)** You can export a configuration file (` .swift-format ` ) to use later 🖥
29+ ** b)** You can export a configuration file ( ` .swift-format ` ) to use later 🖥
3030
3131### 2) Enable X-SwiftFormat
3232
@@ -51,17 +51,21 @@ Open **System Preferences**, click on **Keyboard** and switch to the **Shortcuts
5151# Installing [ Apple Swift Format] ( https://github.com/apple/swift-format ) (Xcode or Mint)
5252
5353## a) Using Xcode
54- if you are using ** Xcode 13 (Swift 5.5)** , you can check out and build swift-format using the following commands:
54+
55+ if you are using ** Xcode 13.4 (Swift 5.6)** , you can check out and build swift-format using the following commands:
5556
5657```
57- git clone -b swift-5.5-branch https://github.com/apple/swift-format.git
58+ git clone -b release/5.6 https://github.com/apple/swift-format.git
5859cd swift-format
5960swift build
6061```
62+
6163You should see this
64+
6265```
63- [207/207] Linking swift-format
66+ Build complete! (51.82s)
6467```
68+
6569👍👍👍
6670
6771## b) Using Mint
@@ -70,31 +74,34 @@ If you dint have **Homebrew**, install [here](https://brew.sh)
7074
7175```
7276brew install mint
73- mint install apple/swift-format@swift-5.5-branch
77+ mint install apple/swift-format@release/5.6
7478```
79+
7580You should see this
81+
7682```
77- 🌱 Cloning swift-format swift-5.5-branch
83+ 🌱 Cloning swift-format release/5.6
7884🌱 Resolving package
7985🌱 Building package
80- 🌱 Installed swift-format swift-5.5-branch
81- 🌱 Linked swift-format swift-5.5-branch to /usr/local/bin
86+ 🌱 Installed swift-format release/5.6
87+ 🌱 Linked swift-format release/5.6
8288```
89+
8390👍👍👍
8491
8592### Command Line Usage
8693
8794```
8895swift-format -v
89- 0.50300.0
96+ 0.50600.1
9097```
9198
9299| Command | Description |
93100| -| -|
94- | ` swift-format swift ` | Display formatted code|
95- | ` swift-format -i file.swift ` | Overwrites formatted code|
96- | ` swift-format -r folder ` | Format all files in a folder|
97- | ` swift-format -r -i folder ` | Format all files in a folder and overwrites|
101+ | ` swift-format swift ` | Display formatted code|
102+ | ` swift-format -i file.swift ` | Overwrites formatted code|
103+ | ` swift-format -r folder ` | Format all files in a folder|
104+ | ` swift-format -r -i folder ` | Format all files in a folder and overwrites|
98105
99106Check more info here: [ https://github.com/apple/swift-format ] ( https://github.com/apple/swift-format )
100107
@@ -103,4 +110,3 @@ Check more info here: [https://github.com/apple/swift-format](https://github.com
103110I'm [ Rui Aureliano] ( http://ruiaureliano.com ) , iOS and macOS Engineer at [ Olá Brothers] ( https://theolabrothers.com ) . We make [ Sip] ( https://sipapp.io ) 🤓
104111
105112[ Linkedin] ( https://www.linkedin.com/in/ruiaureliano ) | [ AngelList] ( https://angel.co/ruiaureliano ) | [ Twitter] ( https://twitter.com/ruiaureliano ) | [ Github] ( https://github.com/ruiaureliano ) | [ Medium] ( https://medium.com/@ruiaureliano ) | [ Stackoverflow] ( https://stackoverflow.com/users/881095/ruiaureliano )
106-
0 commit comments