Swift Plugins

Frameworks with plugins

Apollo iOS - A strongly-typed, caching GraphQL client, written in Swift

  • InstallCLI - Installs the Apollo iOS Command line interface.

Benchmark - Benchmark allows you to easily create sophisticated Swift performance benchmarks.

  • BenchmarkPlugin - Plugin that generates the boilerplate needed to interface with the Benchmark infrastructure.

CodegenKit - This is a framework for introducing code generation on your Swift project.

  • CodegenKitPlugin - After writing renderers, generate codes. Perform code generation with plugin.

DiscordBM - A New Multiplatform Swift Discord Library, Primarily For Making Bots.

LicensePlist - A license list generator of all your dependencies for iOS applications

Lighter - A set of technologies applying code generation to access SQLite3 databases from Swift.

  • Enlighter - A SwiftPM build plugin that searches for SQLite databases and .sql files within the selected targets, and then generates Swift sources to use those databases.
  • Generate Code for SQLite - Generate Swift code for SQLite DBs into the Sources directory.

LiveViewNative - The LiveViewNative Swift package lets you use Phoenix LiveView to build native iOS apps with SwiftUI.

Orion - A DSL for elegant tweak development in Swift.

  • OrionPlugin - A plugin for running Orion Preprocessor.

Prefire - A library for easily generating automatic Playbook view and Tests using SwiftUI Preview.

R.swift - Get strong typed, autocompleted resources like images, fonts and segues in Swift projects.

SecretsManager - Effortless Secrets Management for Swift projects using Code Generation.

  • SecretsManagerPlugin - Using this plugin the following Swift code is generated and available directly to your targets source code.

SmokeFrameworkApplicationGenerate - Code generator to generate SmokeFramework-based applications from service models.

  • SmokeFrameworkGenerateClient - The SPM plugin with a model defined in a seperate package by declaring that package as a dependency of the targets using the generator.

Sourcery - A code generator for Swift language, built on top of Apple's own SwiftSyntax.

swift-argument-parser - Straightforward, type-safe argument parsing for Swift.

Swift OpenAPI Generator - Generate Swift client and server code from an OpenAPI document.

SwiftFormat - SwiftFormat is a code library and command-line tool for reformatting Swift code.

SwiftGen - А tool to automatically generate Swift code for resources of your projects, to make them type-safe to use.

  • SwiftGenPlugin - A prebuild tool will execute it and generate your files before each build

SwiftLint - A tool to enforce Swift style and conventions, loosely based on the now archived GitHub Swift Style Guide.

  • SwiftLintPlugin - SwiftLint can be used as a build tool plug-in for both Xcode projects as well as Swift packages.

Guides

Official Guides

  • Github: Swift Package Manager - This guide provides a brief overview of Swift Package Manager plugins, describes how a package can make use of plugins, and shows how to get started writing your own plugins.
  • WWDC - Meet Swift Package plugins. Discover how you can perform actions on Swift packages and Xcode projects with Swift package plugins.
  • WWDC - Create Swift Package plugins. Tailor your development workflow and learn how to write your own package plugins in Swift.

Third party Guides

  • WWDC Notes - WWDC Notes is an open-source and community-driven effort to collect notes for all Apple's WWDC videos.
  • The.Swift.Dev. - Learn how to create command plugins for the Swift Package Manager to execute custom actions using SPM and other tools.
  • Polpiella - Code generation using Swift Package Plugins.

Contributing

Contributions are most welcome!