There is a library called SwiftSyntax
that allows you to write Swift code that generates even more Swift code. SwiftSyntaxBuilder
is a DSL that makes it easier to use SwiftSyntax
by making use of result builders.
First you will need to import the Swift package to your project. Go to File > Add Package…
Keep reading with a 7-day free trial
Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.