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

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

    
    var swipeTranslation: CGFloat = 0 {
        didSet {
            setNeedsLayout()
        }
    }
    
