     open override func sizeThatFits(_ size: CGSize, apply: Bool) -> CGSize {
         let size = super.sizeThatFits(size, apply: apply)
         if apply {
-            privateContentView.frame = CGRect(origin: .zero, size: size)
-            privateContentView.transform = CGAffineTransform(translationX: swipeTranslation, y: 0)
+            privateContentView.frame = CGRect(origin: CGPoint(x: swipeTranslation, y: 0), size: size)
             let actionsViewWidth = actionsView?.maximumWidth ?? 0
             actionsView?.frame = CGRect(x: size.width - actionsViewWidth, y: 0, width: actionsViewWidth, height: size.height)
             actionsView?.layoutSubviews()

        
        UIView.animate(withDuration: TimeInterval(duration), delay: 0, usingSpringWithDamping: 10, initialSpringVelocity: springVelocity, options: .beginFromCurrentState, animations: {
            self.swipeTranslation = 0
        }, completion: { (finished: Bool) in
            self.removeActionsView()
            self.contentView.isUserInteractionEnabled = true

        privateContentView.backgroundColor = backgroundView?.backgroundColor
        UIView.animate(withDuration: TimeInterval(duration), delay: 0, usingSpringWithDamping: 10, initialSpringVelocity: springVelocity, options: .beginFromCurrentState, animations: {
            self.swipeTranslation = targetTranslation
            self.layoutIfNeeded()
        }, completion: { (finished: Bool) in
            actionsView.isUserInteractionEnabled = true
        })
