SwiftMacros
A practical collection of Swift Macros that help code correctly and swiftly.
A practical collection of Swift Macros that help code correctly and swiftly.
A Keychain wrapper allowing safe interaction with Keychain using strongly typed values and even in Swift concurrency fashion.
While appreciating the power of Swift macros to help redue boilerplate code, we find it not straightforward(or not even possible due to its design goal limitation) in some cases. This package is to try bridge this gap to allow us to generate pattern code using template or swift code transformation based on some other piece of code. It is very practical for cases like generating:
An easy ChatGPT API wrapper that returns results in Completion handler, Swift concurrency async and Combine publisher fashions.
More to come