 class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource, UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout, PhotoSliderDelegate, UIViewControllerTransitioningDelegate, ScaleupAnimationControllerTransitioning {
     
     @IBOutlet var tableView:UITableView!
-
+    
     
     var collectionView:UICollectionView!
     var selectedIndexPath: NSIndexPath?
-
+    
     var imageURLs = [
         NSURL(string:"https://raw.githubusercontent.com/nakajijapan/PhotoSlider/master/Example/Resources/image001.jpg")!,
         NSURL(string:"https://raw.githubusercontent.com/nakajijapan/PhotoSlider/master/Example/Resources/image002.jpg")!,

    // MARK: ScaleupAnimationControllerTransitioning
    
    func transitionSourceImageView() -> UIImageView {

        let indexPath = self.collectionView.indexPathsForSelectedItems()?.first
        let cell = self.collectionView.cellForItemAtIndexPath(indexPath!) as! ImageCollectionViewCell
        let imageView = UIImageView(image: cell.imageView.image)

        animationController.sourceTransition = source as? ScaleupAnimationControllerTransitioning
        animationController.destinationTransition = presented as? ScaleupAnimationControllerTransitioning
        return animationController
        
    }
    
}
