         actionsView.swipeType = swipeType
         super.contentView.insertSubview(actionsView, belowSubview: privateContentView)
         layoutSubviews()
+        actionsView.layoutIfNeeded()
     }
     
     // MARK: Opening & closing action pane

    
    var swipeTranslation: CGFloat = 0 {
        didSet {
            privateContentView.transform = CGAffineTransform(translationX: swipeTranslation, y: 0)
        }
    }
    

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