ivangoremykin / union

Union

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adding Union to Swift with Metaprogramming

A supplementary example for a series of articles

Summary

This repository provides examples of UnionX (Union2, Union3, etc.) generation and usage.

There are 3 ways to explore the code:

  1. Open Union.playground to run code generatation and examples of UnionX usage (Sourcery is not required)
  2. Run code generation using a Sourcery template (a Sourcery binary is required)
  3. Run the code on Repl.it — both code generatation and examples of UnionX usage

Please refer to the articles for the details:

Requirements

License

This example is licensed under the MIT License, see LICENSE for more information.

About

Union

License:MIT License


Languages

Language:Swift 100.0%Language:Shell 0.0%