Download Latest Version SwiftFormat.amd64.msi (17.5 MB)
Email in envelope

Get an email when there's a new version of SwiftFormat

Home / 0.62.0
Name Modified Size InfoDownloads / Week
Parent folder
swiftformat_linux_aarch64.zip 2026-07-06 23.2 MB
swiftformat.zip 2026-07-06 2.3 MB
swiftformat_linux.zip 2026-07-06 24.2 MB
swiftformat.artifactbundle.zip 2026-07-06 46.6 MB
SwiftFormat.amd64.msi 2026-07-06 17.5 MB
SwiftFormat.arm64.msi 2026-07-06 17.2 MB
SwiftFormat.for.Xcode.app.zip 2026-07-06 9.5 MB
0.62.0 source code.tar.gz 2026-07-06 4.3 MB
0.62.0 source code.zip 2026-07-06 4.7 MB
README.md 2026-07-06 2.0 kB
Totals: 10 Items   149.6 MB 0

SwiftFormat new has a website: swiftformat.info! Rules documentation is now available at swiftformat.info/rules.

  • Added redundantSwiftUIGroup rule
  • Added preferContains rule
  • Added preferMinOverSorted rule
  • Added preferFlatMap rule
  • Added preferFirstWhere rule
  • Enabled isEmpty rule by default
  • Split wrapConditionalBodies rule into wrapIfStatementBodies, wrapIfExpressionBodies, wrapGuardStatementBodies
  • Added --indent-blank-lines option to match the surrounding context
  • Added --line-wrap-threshold option for length-based wrapping
  • Added --type-blank-lines consistent option
  • Added start-only and end-only values to --type-blank-lines
  • Added before-non-local-declarations value for --doc-comments
  • Updated noGuardInTests rule to apply to guard-like if statements, use try #require for boolean conditions
  • Updated redundantSendable rule to be disabled by default, and to skip enums with indirect cases
  • Fixed redundantVariable incorrectly removing variables with modifiers or attributes
  • Fixed preferSwiftTesting spuriously adding UIKit import for UInt types
  • Fixed $name closure parameters incorrectly treated as unused when self has a same-named property
  • Fixed docComments rule incorrectly converting enum case group comments to doc comments
  • Fixed markTypes incorrectly considering top-level macro declarations
  • Fixed blankLinesBetweenScopes incorrectly inserting blank line before #elseif directives
  • Fixed emptyExtensions incorrectly removing extensions containing a freestanding macro declaration
  • Fixed organizeDeclarations incorrectly placing freestanding macro declarations after MARK comments
  • Fixed false positive redundantSendable for indirect enum
  • Fixed spaceAroundParens incorrectly inserting space before Optional.some(...) in subsequent @Test arguments
Source: README.md, updated 2026-07-06