Skip to content

Commit 4e11295

Browse files
committed
Add installation instructions for Homebrew
1 parent 6ebcfcd commit 4e11295

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,19 @@ For example, if you are using Xcode 13.3 (Swift 5.6), you will need
6161
## Getting swift-format
6262

6363
If you are mainly interested in using swift-format (rather than developing it),
64-
then once you have identified the version you need, you can check out the
65-
source and build it using the following commands:
64+
then you can get swift-format either via [Homebrew](https://brew.sh/) or by checking out the
65+
source and building it.
66+
67+
### Installing via Homebrew
68+
69+
Run `brew install swift-format` to install the latest version.
70+
71+
### Building from source
72+
73+
Install swift-fromat using the following commands:
6674

6775
```sh
68-
VERSION=508.0.0 # replace this with the version you need
76+
VERSION=509.0.0 # replace this with the version you need
6977
git clone https://github.com/apple/swift-format.git
7078
cd swift-format
7179
git checkout "tags/$VERSION"

0 commit comments

Comments
 (0)