title: How can I save a SwiftUI image to disk or get the data out?
body: <p>I'm trying to save a SwiftUI image (not a UIImage from UIKit) to disk. </p>
  
  <p>I've looked everywhere but could not find any documented information on how to do this. I also cannot see a way to extract the Data from the SwiftUI image.</p>
  
  <p>Can anybody help? Thanks in advance.</p>