SwiftFormat v0.45.0 Release Notes
Release Date: 2020-07-29 // almost 4 years ago-
- ➕ Added
wrapAttributes
rule for controlling attribute position - ➕ Added
wrapMultilineStatementBraces
rule for opening braces for wrapped expressions - ➕ Added
preferKeyPath
rule for converting trivial closures to keyPaths in Swift 5.2 - ➕ Added
--smarttabs
option to support consistent indenting regardless of--tabwidth
- ⚡️ Updated Xcode extension for Xcode 12 and macOS Big Sur
- ➕ Added Swift version dropdown to SwiftFormat for Xcode configuration app
- ➕ Added
--guardelse
option to control wrapping ofelse
clauses inguard
statements - Allman braces are now applied to closure braces, which were previously ignored
- The
void
rule now convertsVoid()
literals to just()
- 👌 Improved indenting of closing parentheses and brackets
- 📇 Renamed
--empty
option to--voidtype
, which better describes its function - 👕 Renamed
specifiers
rule tomodifierOrder
for consistency with SwiftLint - 🔧 Renamed
--specifierorder
configuration option to--modifierorder
- 🛠 Fixed bug where
--verbose
mode didn't log path for unchanged files - 👌 Improved documentation of
numberFormatting
configuration options - ➕ Added Sublime Text plugin instructions
- ➕ Added