This repository provides examples of UnionX
(Union2
, Union3
, etc.) generation and usage.
There are 3 ways to explore the code:
- Open
Union.playground
to run code generatation and examples ofUnionX
usage (Sourcery is not required) - Run code generation using a Sourcery template (a Sourcery binary is required)
- Run the code on Repl.it — both code generatation and examples of
UnionX
usage
Please refer to the articles for the details:
- Xcode
- Sourcery (Optional)
This example is licensed under the MIT License, see LICENSE for more information.