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.
Once you added my package you can trigger source code formatting from the CLI or from Xcode 14 directly.
- Swift Packages
- Xcode projects
You find more information in the plugin's README.