title: How do I implement AVAssetImageGenerator.copyCGImageAtTime in swift
body: <p>Thus far I have the following</p>
  
  <pre><code>  let assetUrl = NSURL.URLWithString(self.targetVideoString)
    let asset: AVAsset = AVAsset.assetWithURL(assetUrl) as AVAsset
    let imageGenerator = AVAssetImageGenerator(asset: asset);
    let time : CMTime = CMTimeMakeWithSeconds(1.0, 1)
    let actualTime : CMTime
    let myImage: CGImage =imageGenerator.copyCGImageAtTime(requestedTime: time, actualTime:actualTime, error: &lt;#NSErrorPointer#&gt;)
  </code></pre>
  
  <p>The last line is where I get lost ... I simply want to grab an image at time 1.0 seconds</p>