 
         let titleAndCloseButtonView = UIView(frame: .zero)
 
-        let closeButton = UIButton.button(withImageSetName: "close", emphasisSuffix: "-filled", tintColor: .black)
+        let closeButton = UIButton.button(withImageSetName: "close", emphasisSuffix: "-filled", tintColor: tintColor, imageBundle: Bundle(for: DismissableModalViewController.self))
         titleAndCloseButtonView.addSubview(closeButton)
         closeButton.topAnchor == titleAndCloseButtonView.topAnchor
         closeButton.bottomAnchor == titleAndCloseButtonView.bottomAnchor


    private var closeBlock: (() -> ())?

    public init(childViewController: UIViewController, titleFont: UIFont, backgroundColor: UIColor = .clear, onClose closeBlock: (() -> ())? = nil) {
        super.init(nibName: nil, bundle: nil)

        view.backgroundColor = backgroundColor

        closeButton.setContentHuggingPriority(UILayoutPriority.required, for: .horizontal)
        closeButton.addTarget(self, action: #selector(closeButtonTapped), for: .touchUpInside)

        let titleLabel = UILabel.label(withText: title ?? "", font: titleFont, textColor: tintColor, alignment: .center)
        titleLabel.minimumScaleFactor = 0.5
        titleLabel.adjustsFontSizeToFitWidth = true
        titleLabel.allowsDefaultTighteningForTruncation = true
