Skip to content

A collection of macros to reduce boilerplate on common declarations.

License

Notifications You must be signed in to change notification settings

khlopko/swift-util-macros

Repository files navigation

swift-util-macros

A set of Swift macros to provide convenient initialization / modification over structs and classes declarations.

Available macros

  • @PublicInit – generates a public initializer for the type.
  • @GranularUpdate – generates a public initializer for the type allowing to copy values from another instance.
  • @TestStub – generates a set of properties (like tracking calls & args, throw custom errors, modify result) for testing stub.

About

A collection of macros to reduce boilerplate on common declarations.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages