🎉 1.0.0 Release
1.0.0 is here and provides new features, fixes and breaking changes.
New Features
mutating
andnonmutating
modifiers are supported.typealias
's can be defined viaTypeAliasSpec
.-
TypeAliasSpec
be used anywhere aTypeSpec
was previously allowed.
- Enum cases allow documentation & attributes.
AttributeSpec
accepts aDeclaredTypeName
as the identifier for generating use of property wrappers.#iif/#endif
guards can be added to anyFileSpec
member.FunctionSpec
allows adding local type definitions that are emitted prior to general code.- Simple property
get
functions are emitted in concise format.
Breaking Changes
addKDoc
has been renamed toaddDoc
.
Quite simpley, Swift documentation isn't referred to as KDoc.beginControlFlow
/nextControlFlow
/endControlFlow
requires the control flow construct be provided explicitly.
The idiomatic Swift format (or at least the Xcode default) doesn't indent thecase
s ofswitch
es. Providing the control flow construct explicitly allows the code to be generated matching this format.
Resolved Issues
- Reserved property & enum case names are allowed and correctly escaped using backticks.
- Reserved names are now correctly escaped using backticks.
Complete list of updates & fixes is here
Thanks
Special thanks to @JakeWharton & @efirestone for their help on the library and this release!