From 9de1849e93c1ba1bf9e25f7a4905d205fad197a3 Mon Sep 17 00:00:00 2001 From: Caleb Jasik Date: Thu, 13 Feb 2025 16:24:48 -0600 Subject: [PATCH] Document dep on `swiftformat` and using it for swift formatting --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 901d454..38a2b47 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ Install all of the following things: - [`xcode`](https://apps.apple.com/us/app/xcode/) +- [`swiftformat`](https://github.com/nicklockwood/SwiftFormat) - [`android-studio`](https://developer.android.com/studio) - [`flutter` 3.29.0](https://docs.flutter.dev/get-started/install) - [`gomobile`](https://pkg.go.dev/golang.org/x/mobile/cmd/gomobile) @@ -41,6 +42,10 @@ dart format lib/ test/ -l 120 In Android Studio, set the line length using Preferences -> Editor -> Code Style -> Dart -> Line length, set it to 120. Enable auto-format with Preferences -> Languages & Frameworks -> Flutter -> Format code on save. +`swiftformat .` can be used to format the `*.swift` code in the repo. + +There are several options for editor integrations listed in the source repo: + # Release