From bb46c59f1d45f0b7a32bd793d4be8ce8606d46d9 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Thu, 19 Jun 2025 00:40:58 +0200 Subject: [PATCH] chore(apple): add `.swift-format` file (#9566) When using alternative editors other than Xcode, Intellisense is usually provided by `sourcekit-lsp`. The LSP server also uses `swift-format` under the hood to format the code but appears to default to using 4 spaces for indentation. In order to standardise on how much indentation is used, we add a `.swift-format` file that specifies is. --- swift/apple/.swift-format | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 swift/apple/.swift-format diff --git a/swift/apple/.swift-format b/swift/apple/.swift-format new file mode 100644 index 000000000..1c148494e --- /dev/null +++ b/swift/apple/.swift-format @@ -0,0 +1,6 @@ +{ + "version": 1, + "indentation": { + "spaces": 2 + } +}