Swift Code Generation AI Coding Tools
Tools for programmatically generating Swift source code, type-safe APIs, and domain-specific languages. Includes mock generation, schema-based code synthesis, and Swift DSLs. Does NOT include general code generation frameworks, non-Swift languages, or runtime reflection/introspection tools.
There are 51 swift code generation tools tracked. 3 score above 50 (established tier). The highest-rated is WendellXY/CodableKit at 52/100 with 52 stars.
Get all 51 projects as JSON
curl "https://pt-edge.onrender.com/api/v1/datasets/quality?domain=ai-coding&subcategory=swift-code-generation&limit=20"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
| # | Tool | Score | Tier |
|---|---|---|---|
| 1 |
WendellXY/CodableKit
A Swift macro package designed to simplify the use of Swift's Codable... |
|
Established |
| 2 |
yonaskolb/SwagGen
OpenAPI/Swagger 3.0 Parser and Swift code generator |
|
Established |
| 3 |
SwiftyLab/MetaCodable
Supercharge Swift's Codable implementations with macros meta-programming. |
|
Established |
| 4 |
Lighter-swift/Lighter
Swift APIs for SQLite: Type-safe down to the schema. Very, very, fast.... |
|
Emerging |
| 5 |
DanielMSchmidt/objective-c-parser
Get the JSON representation of an Objective-C header file |
|
Emerging |
| 6 |
andreadelfante/PredicateFlow
Write amazing, strong-typed and easy-to-read NSPredicate. |
|
Emerging |
| 7 |
pointfreeco/swift-enum-properties
🤝 Struct and enum data access in harmony. |
|
Emerging |
| 8 |
ksoichiro/rdotm
Objective-C resource definition generator like Android app's R.java. |
|
Emerging |
| 9 |
inquisitiveSoft/XCAssetPacker
A command line tool for converting a folder of images into an .xcasset... |
|
Emerging |
| 10 |
fernandodelrio/SwiftColorGen
A tool that generate code for Swift projects, designed to improve the... |
|
Emerging |
| 11 |
cocoaheadsru/server
This is server side api for CocoaHeads Russia app. It was built with Swift... |
|
Emerging |
| 12 |
onl1ner/ios-mvp-template
🛠 A flexible and easy template created to speed up the development of your... |
|
Experimental |
| 13 |
RedMadRobot/service-autograph
Service generation utility. |
|
Experimental |
| 14 |
EmilioOjeda/Device
A representation of the running device - it could be either actual or simulated. |
|
Experimental |
| 15 |
truewebber/swift-protoparser
Native Swift library for parsing .proto files (proto2 & proto3) into... |
|
Experimental |
| 16 |
RedMadRobot/autograph
Swift source code generation kit. |
|
Experimental |
| 17 |
0xLeif/Mocked
🛠️ Effortless Mock Generation for Swift Protocols |
|
Experimental |
| 18 |
rcarvalhosilva/CleanSwiftSourceryTemplate
Sourcery template to generate CleanSwift boilerplate code from use case definition |
|
Experimental |
| 19 |
Star-Lord-PHB/swift-codable-macro
Macros for automatically generating customizable conformance to `Codable` protocol. |
|
Experimental |
| 20 |
lytreebot/swift-gherkin-generator
🛠️ Generate and validate Gherkin .feature files in Swift with a type-safe... |
|
Experimental |
| 21 |
alexito4/SwiftUsing
Implementation of the `using` feature in Swift by code generation with SwiftSyntax |
|
Experimental |
| 22 |
WezSieTato/fastlane-plugin-sourcery
Run sourcery with fastlane! Sourcery is a code generator for Swift language,... |
|
Experimental |
| 23 |
RedMadRobot/synopsis
Swift source code scanner. |
|
Experimental |
| 24 |
atelier-socle/swift-gherkin-generator
A Swift library for composing, validating, importing, and exporting Gherkin... |
|
Experimental |
| 25 |
DarthMike/AutoObjCBridgeable
Template to generate Swift->ObjC bridging classes for structs and enums... |
|
Experimental |
| 26 |
JFej/swift-resource-generator
Programmatic Apple resource generation in Swift, starting with XCAsset... |
|
Experimental |
| 27 |
muhittincamdali/SwiftCodeGen
⚙️ All-in-one Swift code generator - mocks, assets, localization & DI |
|
Experimental |
| 28 |
EnesKaraosman/LoremSwiftify
LoremSwiftify is a Macro that creates lorem ipsum data for your models |
|
Experimental |
| 29 |
coenttb/swift-splat
Swift macro for generating convenience initializers by splatting nested... |
|
Experimental |
| 30 |
viniciusaro/SwiftCodeGen
Swift CLI tools for generating Swift code |
|
Experimental |
| 31 |
s1ddok/Sardonyx
Convert your ONNX models into Swift for TensorFlow or Metal Performance Shaders (WIP) |
|
Experimental |
| 32 |
MakeupStudio/CSSKit
CSS DSL written in Swift |
|
Experimental |
| 33 |
hassaanelgarem/GenStore-swift
A lightweight swift code generator for your images, colors and localized strings. |
|
Experimental |
| 34 |
IBDecodable/IBGenerate
Storyboard code generator |
|
Experimental |
| 35 |
chrishoste/SwiftTokenGen
Effortlessly generate code from DesignTokens. Decode Figma exports or Amazon... |
|
Experimental |
| 36 |
banghuazhao/swift-super-tiny-compiler
Swift implementation of The Super Tiny Compiler - transforms LISP syntax to... |
|
Experimental |
| 37 |
illescasDaniel/Swift-Resources
Python scripts to dynamically generate variables referencing your resources.... |
|
Experimental |
| 38 |
RedMadRobot/parser-autograph
Object parser generation utility. |
|
Experimental |
| 39 |
Filozoff/Kukulka
A framework for autogenerating values for model properties, based on Sourcery. |
|
Experimental |
| 40 |
futuredapp/Realm-Codegen
Code Generation of Realm model files in Swift using Sourcery |
|
Experimental |
| 41 |
dchprojects-zz/Viper-Template
Viper Template |
|
Experimental |
| 42 |
kremizask/AutoMake
Code generation for Swift factory functions with default parameter values |
|
Experimental |
| 43 |
li3zhen1/WithSpecializedGenericMacro
A peer macro expanding generic struct or class to a specialized type |
|
Experimental |
| 44 |
EmilioOjeda/AllAppleDevices
It provides the complete list of devices found in Xcode's databases |
|
Experimental |
| 45 |
DuetHealth/Hexicon
Generate string definitions from code--like magic |
|
Experimental |
| 46 |
gmarson/MetaProgramming-Swift
Using sourcery to generate equatable, init and encodable codes |
|
Experimental |
| 47 |
rebeccajae/metal-bindgen
MPS binding code made easy! |
|
Experimental |
| 48 |
tribalworldwidelondon/CoreDataModelGenerator
A customisable utility for generating NSManagedObject subclasses for Core... |
|
Experimental |
| 49 |
cpageler93/ChickGen
Swift Code Generator |
|
Experimental |
| 50 |
Azzam-dev/SwiftyBabel
A Swift wrapper for Babel.js [not complete] |
|
Experimental |
| 51 |
hooliooo/CodeBuilder
Leverage Swift function builders to generate Swift code |
|
Experimental |