title: Photos Framework. requestImageForAsset returning two results. Can't set image view
body: <p>So I am using the SwipeView library (<a href="https://github.com/nicklockwood/SwipeView">https://github.com/nicklockwood/SwipeView</a>) to show images using the Photos framework for iOS8.</p>
  
  <p>However, when I call the requestImageForAsset I notice I am getting two results, a thumbnail size, and the bigger size that I want. However, the bigger image isn't loaded (it's called async I understand) in time to return, so it returns the small image. </p>
  
  <p>This code might make more sense.</p>
  
  <pre><code>    func swipeView(swipeView: SwipeView!, viewForItemAtIndex index: Int, reusingView view: UIView!) -&gt; UIView! {
              let asset: PHAsset = self.photosAsset[index] as PHAsset
  
      var imageView: UIImageView!
  
      let screenSize: CGSize = UIScreen.mainScreen().bounds.size
      let targetSize = CGSizeMake(screenSize.width, screenSize.height)
  
  
      var options = PHImageRequestOptions()
  //        options.deliveryMode = PHImageRequestOptionsDeliveryMode.Opportunistic
      options.resizeMode = PHImageRequestOptionsResizeMode.Exact
  
  
      PHImageManager.defaultManager().requestImageForAsset(asset, targetSize: targetSize, contentMode: .AspectFill, options: options, resultHandler: {(result, info)in
          println("huhuhuh")
          println(result.size)
          println(info)
          imageView = UIImageView(image: result)
      })
      println("setting view)
      return imageView
  }
  </code></pre>
  
  <p>Here is the log output:</p>
  
  <pre><code>Enteredhuhuhuh
  (33.5,60.0)
  SETTING VIEW
  huhuhuh
  (320.0,568.0)
  </code></pre>
  
  <p>As you can see it returns the image view before the big image is recieved. How do I make it return this larger image so it's not showing the thumbnai?</p>
  
  <p>Thanks. </p>