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.
MetaCodable
Supercharge Swift's Codable implementations with macros meta-programming.
SafeDI
Compile-time-safe dependency injection for Swift without the boilerplate
Sourcery
Meta-programming for Swift, stop writing boilerplate code.
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.
SwiftL10n
Catch every hardcoded string, missing asset, and stale translation before they ship.
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
swift-gyb
A SwiftPM build tool plugin that expands gyb templates into Swift sources and resources at build time.
swift-codable-macro
Macros for automatically generating customizable conformance to `Codable` protocol.
swift-resource-generator
Programmatic Apple resource generation in Swift, starting with XCAsset catalogs, with a type-safe DSL, parser/import support, and deterministic output.
LoremSwiftify
Swift Macro that generates realistic mock/fake data for structs, classes, and enums — perfect for SwiftUI previews and snapshot tests
SwiftProtoParser
Native Swift library for parsing .proto files (proto2 & proto3) into SwiftProtobuf descriptors. Full syntax support, well-known types, and detailed error reporting.
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.
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-snippets
Toolkit for declarative output templates in Swift
Synopsis
Swift source code scanner.
Autograph
Swift source code generation kit.
ParserAutograph
Object parser generation utility.