title: Swift equivalent for UIImage with CGImage?
body: <p><strong>What is the Swift equivalent for the following expression?</strong></p>
  
  <pre><code>@property (strong, nonatomic) NSMutableArray *assets;
  
  cell.imageView.image = [UIImage imageWithCGImage:[[self.assets objectAtIndex:indexPath.row] thumbnail]];
  </code></pre>
  
  <p>I tried: </p>
  
  <pre><code>private var assets: [AnyObject]
  
  cell.imageView.image = UIImage(CGImage: self.assets[indexPath.row].thumbnail())
  </code></pre>
  
  <p>But this gives the error: </p>
  
  <pre><code>Missing argument for parameter 'inBundle' in call
  </code></pre>
  
  <p>Edit: <code>self.assets</code> has objects from the following expression: </p>
  
  <pre><code>ALAssetsGroupEnumerationResultsBlock assetsEnumerationBlock = ^(ALAsset *result, NSUInteger index, BOOL *stop) {
  
          if (result) {
              [self.assets insertObject:result atIndex:0];
          }
  
      };
  </code></pre>