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

        
        return output
    }
    
}

        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
        }
        
