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

    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)
            let actionsViewWidth = actionsView?.maximumWidth ?? 0
            actionsView?.frame = CGRect(x: size.width - actionsViewWidth, y: 0, width: actionsViewWidth, height: size.height)
            actionsView?.layoutSubviews()

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