Eneko Alonso

Jun 21, 2019

2 min read

Rasterizing SwiftUI views from the Command-Line

Generating images programmatically can be used for many purposes. From generating simple memes (by overlaying some text over a given image asset), to composing image collages, applying filters, image transformations, charts, infographics, etc.

SwiftUI is a powerful DSL designed to make it very easy to generate complex views with code, while removing a great deal of boilerplate.

Good news is SwiftUI can be used from the command-line¹ with Swift Package Manager.

Senior Engineer at MINDBODY. I specialize in Swift applications (mobile and server-side).

Love podcasts or audiobooks? Learn on the go with our new app.