Render a SwiftUI view into an image

The new Canvas is pretty cool and has a lot of potential, specially by allowing you to add other views into it very easily. But I'm missing a way to get a SwiftUI view and get an image that I can save to disk. Is there an API that I'm missing around Canvas or is that still not supported without having to get down into UIKit/AppKit?

Render a SwiftUI view into an image
 
 
Q