Skip to main content

SwiftFormatPlugin

Published 1 min readMarkdown
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.

About the author

  • 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 馃嚭馃嚫

No comments yet. Be the first to comment.

More from this blog