 import UIKit
 
 class HideDetailAnimator: NSObject, UIViewControllerAnimatedTransitioning {
+    
     private let duration = 0.75
     
     func transitionDuration(transitionContext: UIViewControllerContextTransitioning?) -> NSTimeInterval {

        }
        return indexPath
    }
}

            
            UIView.addKeyframeWithRelativeStartTime(0.0, relativeDuration: 0.3, animations: { () -> Void in
                snapshot.frame = containerView.convertRect(firstRect, fromView: fromCollectionView)
                lineView.frame = self.lineViewFrameWithBounds(snapshot.bounds)
            })
            
            UIView.addKeyframeWithRelativeStartTime(0.3, relativeDuration: 0.3, animations: { () -> Void in
                snapshot.frame = secondRect
                lineView.frame = self.lineViewFrameWithBounds(snapshot.bounds)
            })
            
            UIView.addKeyframeWithRelativeStartTime(0.6, relativeDuration: 0.3, animations: { () -> Void in
