         }
     }
     
+    
     // 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 = UIColor.white.cgColor
        baseView.isHidden = true
        baseView.lastLocation = self.view.center
        baseView.lastLocation.y = baseView.lastLocation.y + contentOffset

                    baseView.center = CGPoint(x: center.x ,y: center.y + offset)
                }
            }
        }
    }
    
    /// Change the color of titleLabel
    open var titleColor: UIColor? {
        didSet {
            titleLabel?.textColor = titleColor
        }
    }
    
    /// Change the color of messageLabel
    open var messageColor: UIColor? {
        didSet {
            messageLabel?.textColor = messageColor
        }
    }
    
    /// Change the color of alert container
    open var alertBackgroundColor: UIColor? {
        didSet {
            baseView?.backgroundColor = alertBackgroundColor
        }
    }
    
