SwiftFormat v0.41.0 Release Notes
Release Date: 2019-11-23 // over 4 years ago-
- The
wrapArguments
rule can now automatically wrap functions and collections to--maxwidth
- ➕ Added
—maxwidth
option to specify the width at which code should wrap (currently only used bywrapArguments
rule) - ➕ Added
—tabwidth
option to help with code indenting and wrapping when using tabs for indent - 🛠 Fixed indenting of code wrapped after the
in
in afor...in
loop - 🛠 Fixed indenting of code wrapped before the
is
in an expression - ➕ Added version check for
redundantBackticks
rule to support fixes in Swift 5 - 🛠 Fixed error when parsing escaped triple-quote in a multiline string
- 🛠 Fixed bug where a multiline comments before an opening brace could result in corrupted output
- CLI will now fail if .swiftformat file contains an invalid option, instead of ignoring it
- ➕ Added support for formatting Swift package manifest files using Xcode Extension
- The