         titleLabel.font = titleFont
         titleLabel.textAlignment = .center
         titleLabel.widthAnchor.constraint(lessThanOrEqualTo: messageLabel.widthAnchor, multiplier: 1.0).isActive = true
+        if let titleColor = titleColor {
+            titleLabel.textColor = titleColor
+        }
     }
     
     /// Setup Seperator Line

        }
    }
    
    // Helper to get the real device width
    fileprivate var deviceWidth: CGFloat {
        let realValue = (view.bounds.width < view.bounds.height ? view.bounds.width : view.bounds.height)

        baseView.addGestureRecognizer(UIPanGestureRecognizer(target: self, action: #selector(AZDialogViewController.handlePanGesture(_:))))
        
        baseView.layer.cornerRadius = 15
        baseView.layer.backgroundColor = alertBackgroundColor?.cgColor ?? UIColor.white.cgColor
        baseView.isHidden = true
        baseView.lastLocation = self.view.center
        baseView.lastLocation.y = baseView.lastLocation.y + contentOffset
