         
         return output
     }
-    
 }

    private func handlePan(recognizer: UIPanGestureRecognizer) {
        switch recognizer.state {
        case .Ended:
            let value = normalizedScrollViewOffset().y
            let triggeringValue = CGRectGetHeight(bounds) * threshold
            
            switch state {

        sizeToFit()
    }
    
    public override func sizeThatFits(_: CGSize) -> CGSize {
        var height: CGFloat = 0.0
        
        switch state {
        case .Default:
            height = scrollView.normalizedContentOffset.y * -1.0
            
        case .Revealed:
            height = appliedInsets.top - scrollView.normalizedContentOffset.y
            break
        }
        
