 
 private var ContentOffsetContext = 0
 
-private let DefaultContentHeight: CGFloat = 64.0
+private let DefaultContentHeight: CGFloat = 64
 
 public class StickyHeaderView: UIView {
     // MARK: - Init

    // MARK: - Content Offset Hanlding
    private func applyContentContainerTransform(progress: CGFloat) {
        var transform = CATransform3DIdentity
        transform.m34 = -1.0 / 500.0
        let angle = acos(min(bounds.height, contentHeight) / contentHeight)
        transform = CATransform3DRotate(transform, angle, 1.0, 0.0, 0.0)
        
        contentContainer.layer.transform = transform
    }

    @objc
    private func handlePan(recognizer: UIPanGestureRecognizer) {
        if recognizer.state == .Ended {
            let value = scrollView.normalizedContentOffset.y * (revealed ? 1 : -1)
            let triggeringValue = contentHeight * threshold
            
            if triggeringValue < value {
                setRevealed(!revealed, animated: true)
            } else if 0 < bounds.height && bounds.height < contentHeight  {
                UIView.animateWithDuration(0.2) {
                    self.scrollView.contentOffset.y = -self.scrollView.contentInset.top
                }
            }
        }
    }
