Packages for keyword “code-generation”
These packages are available as a package collection, usable in Xcode or SwiftPM.
Lighter
Swift APIs for SQLite: Type-safe down to the schema. Very, very, fast. Dependency free.
Sourcery
Meta-programming for Swift, stop writing boilerplate code.
MetaCodable
Supercharge Swift's Codable implementations with macros meta-programming.
SwagGen
OpenAPI/Swagger 3.0 Parser and Swift code generator
CodableKit
A Swift macro package designed to simplify the use of Swift's Codable protocol by allowing easy integration of default values, reducing the amount of auxiliary code you need to write.
SafeDI
Compile-time-safe dependency injection for Swift without the boilerplate
MacroCodableKit
Boilerplate-free Codable for Swift. Supports AllOf / OneOf (OpenAPI), adjacently tagged enums, custom coding keys, default values, and value strategies — all via macros with zero runtime overhead
PackageGeneratorPlugin
SwiftPM command plugin that reads your sources' imports and generates Package.swift for heavily modularized Swift projects. Works with PackageGeneratorCLI.
swift-snapshot
Turn a value your app produced into Swift source that rebuilds it. Commit it as a test fixture the compiler checks. Swift 6, swift-syntax, swift-format.
swift-gyb
Generate Swift sources and resource files from Python templates during SwiftPM builds.
LoremSwiftify
Swift Macro that generates realistic mock/fake data for structs, classes, and enums — perfect for SwiftUI previews and snapshot tests
SchemeGeneratorPlugin
SwiftPM command plugin that writes a shared Xcode scheme for every product in Package.swift and removes obsolete ones. For modular and TCA codebases.
swift-codable-macro
Macros for automatically generating customizable conformance to `Codable` protocol.
SwiftL10n
Catch every hardcoded string, missing asset, and stale translation before they ship.
PackageGeneratorCLI
The import scanner behind the PackageGenerator SwiftPM plugin: parses every Swift file of a package with swift-syntax, concurrently, and reports each target's imports as JSON.
swift-resource-generator
Programmatic Apple resource generation in Swift, starting with XCAsset catalogs, with a type-safe DSL, parser/import support, and deterministic output.
SwiftProtoParser
Native Swift library for parsing .proto files (proto2 & proto3) into SwiftProtobuf descriptors. Full syntax support, well-known types, and detailed error reporting.
swift-declarative-openapi-generator
Turns an OpenAPI document into a compile-checked Swift BackendSpec for swift-declarative-requests — typed operations, models, and security gates
swift-draft
Swift macros for generating editable, validated draft models with defaults, field tracking and safe model conversion.
GherkinGenerator
A Swift library for composing, validating, importing, and exporting Gherkin .feature files programmatically.