Skip to main content

Command Palette

Search for a command to run...

SwiftFormatPlugin

Published
1 min read
SwiftFormatPlugin

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.

More from this blog

Dev blog post potpourri by senior software engineer Marco Eidinger

149 posts

Hello 👋🏻 , I am a Software Engineer working on open source and enterprise mobile SDKs for iOS and MacOS developers written in Swift. From 🇩🇪 and happily living in 🇺🇸