alexito4/SwiftUsing
Implementation of the `using` feature in Swift by code generation with SwiftSyntax
This tool helps Swift developers simplify their code when working with `struct` composition, allowing them to access nested properties directly as if they were part of the outer `struct`. You provide a Swift source file with a special comment, and it outputs a modified Swift file with the syntax streamlined. Swift developers who prefer `struct`s over classes for composition will find this useful.
No commits in the last 6 months.
Use this if you are a Swift developer using `struct` composition extensively and want to achieve a cleaner, more direct syntax for accessing nested properties.
Not ideal if you primarily use class inheritance or are working with complex type declarations or multiple files, as it has known limitations regarding single-file processing and basic declaration syntax.
Stars
11
Forks
1
Language
Swift
License
MIT
Category
Last pushed
Apr 22, 2019
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/alexito4/SwiftUsing"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
SwiftyLab/MetaCodable
Supercharge Swift's Codable implementations with macros meta-programming.
WendellXY/CodableKit
A Swift macro package designed to simplify the use of Swift's Codable protocol by allowing easy...
DanielMSchmidt/objective-c-parser
Get the JSON representation of an Objective-C header file
yonaskolb/SwagGen
OpenAPI/Swagger 3.0 Parser and Swift code generator
Lighter-swift/Lighter
Swift APIs for SQLite: Type-safe down to the schema. Very, very, fast. Dependency free.