<

SwiftMacros

A practical collection of Swift Macros that help code correctly and swiftly.

SwiftKeychain

A Keychain wrapper allowing safe interaction with Keychain using strongly typed values and even in Swift concurrency fashion.

SwiftCodePatterns

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:

  • the corresponding variable in EnvironmentValues extension for new defined EnvironmentKey.
  • the corresponding variable in UITraitCollection extension for new defined UITraitDefinition.
  • the corresponding method in View extension for new defined ViewModifer.

ChatGPTSDK

An easy ChatGPT API wrapper that returns results in Completion handler, Swift concurrency async and Combine publisher fashions.