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.
SafeDI
Compile-time-safe dependency injection for Swift without the boilerplate
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.
SwagGen
OpenAPI/Swagger 3.0 Parser and Swift code generator
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-codable-macro
Macros for automatically generating customizable conformance to `Codable` protocol.
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-resource-generator
Programmatic Apple resource generation in Swift, starting with XCAsset catalogs, with a type-safe DSL, parser/import support, and deterministic output.
GherkinGenerator
A Swift library for composing, validating, importing, and exporting Gherkin .feature files programmatically.
Synopsis
Swift source code scanner.
Autograph
Swift source code generation kit.
ParserAutograph
Object parser generation utility.
ServiceAutograph
Service generation utility.
WithSpecializedGeneric
A peer macro expanding generic struct or class to a specialized type
17 packages.