         self.contentView = contentView
         self.title = title
         self.content = content
-    
+
         initSubviews()
     }
 

            confirmButton.height(44.0).width(contentMaxWidth/2)
                .centerX(maxWidth * 0.75).y((contentView ?? contentLabel).cic.bottom + marginV)
        }
    
        var autoSizeHeight = (actions ?? [cancelButton, confirmButton]).map{ $0.cic.bottom + marginV}.max()!
        if autoSizeHeight > maxHeight {
            contentLabel.height(maxHeight - marginV - cancelButton.cic.height - marginV - titleLabel.cic.bottom - marginV)
            contentLabel.layout()
            _ = [cancelButton, confirmButton].map{ $0.y(contentLabel.cic.bottom + marginV) }
            autoSizeHeight = (actions ?? [cancelButton, confirmButton]).map{ $0.cic.bottom + marginV}.max()!
        }
        titleLabel.centerX(maxWidth/2)
        contentLabel.centerX(maxWidth/2).backgroundColor(.green)


    public override func layoutSubviews() {
        super.layoutSubviews()

        render()
    }

    public override func sizeThatFits(_ size: CGSize) -> CGSize {
        return render()
    }

    public override func didToggleTheme() {
        super.didToggleTheme()
        deviceOrientationDidChange()
    }

    public override func deviceOrientationDidChange() {
        self.sizeToFit()
        if let superView = self.superview {
            self.center(superView.cic.internalCenter)
        }
    }

    /// 类似于UIAlertController addAlertAction
    ///
    /// - Parameter actions: CICAlertAction
