title: Save image from xcode playground to resources folder in swift
body: <p>How would one programmatically save an image generated from a playground to the resources folder?</p>
  
  <p>I have generated some photos through filters in my playground that I would like to save somehow. The resources folder seems like a good fit. What if I wanted to save the image to the desktop?</p>
  
  <p>I've seen this done with saving images for apps, but I just want to save it to my desktop (or a specified folder in a specified location.)</p>