     }
 
     private func fractionRevealed() -> CGFloat {
-        return min(CGRectGetHeight(bounds) / contentHeight, 1.0)
+        return min(CGRectGetHeight(bounds) / contentHeight, 1)
     }
 
     // MARK: - Applyied Insets

    // 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
    }

        clipsToBounds = true
    }

    public override init(frame: CGRect = CGRect(x: 0, y: 0, width: 320, height: DefaultContentHeight)) {
        super.init(frame: frame)
        
        commonInit()
