Skip to content

Commit 16dc01a

Browse files
authored
Merge pull request #756 from ahoppen/swift-format-in-xcode
Update README.md to mention that swift-format is included in Xcode 16
2 parents 0ac5bbc + 56fa13b commit 16dc01a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,11 @@ 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 you can get swift-format either via [Homebrew](https://brew.sh/) or by checking out the
65-
source and building it.
64+
then you can get it in three different ways:
65+
66+
### Included in Xcode
67+
68+
Xcode 16 and above include swift-format in the toolchain. You can run `swift-format` from anywhere on the system using `swift format` (notice the space instead of dash). To find the path at which `swift-format` is installed, run `xcrun --find swift-format`.
6669

6770
### Installing via Homebrew
6871

0 commit comments

Comments
 (0)