     func card(cardSwipeSpeed card: DraggableCardView) -> DragSpeed
 }
 
-//Drag animation constants
-private let rotationMax: CGFloat = 1.0
-private let defaultRotationAngle = CGFloat(Double.pi) / 10.0
-private let scaleMin: CGFloat = 0.8
-
 private let screenSize = UIScreen.main.bounds.size
 
 //Reset animation constants

internal var cardSwipeActionAnimationDuration: TimeInterval = DragSpeed.default.rawValue

public class DraggableCardView: UIView, UIGestureRecognizerDelegate {
    
    weak var delegate: DraggableCardDelegate?
    

            layer.shouldRasterize = true
            
        case .changed:
            let rotationStrength = min(dragDistance.x / frame.width, DraggableCardView.defaultRotationMax)
            let rotationAngle = animationDirectionY * DraggableCardView.defaultRotationAngle * rotationStrength
            let scaleStrength = 1 - ((1 - DraggableCardView.defaultScaleMin) * fabs(rotationStrength))
            let scale = max(scaleStrength, DraggableCardView.defaultScaleMin)
    
            var transform = CATransform3DIdentity
            transform = CATransform3DScale(transform, scale, scale, 1)
