1 min read

In this blog post I will introduce my new, open-source Swift Package Plugin SwiftFormatPlugin that you can use to format source code belonging to your Swift Package or Xcode Project. The plugin is leveraging the popular SwiftFormat open-source project.

SwiftFormat made it easy to create such a package plugin by publishing an artifact bundle starting with their GitHub release 0.49.12.

Screen Shot 2022-07-15 at 3 42 24 PM

Once you added my package you can trigger source code formatting from the CLI or from Xcode 14 directly.

  • Swift Packages
  • Xcode projects

Run plugin in Xcode 14

You find more information in the plugin's README.