Please help me, this error my code : @IBAction func signinButton(_ sender: AnyObject) {
        self.ActivityIndicator.startAnimating()
        
        let id   = usernameTextField.text;
        let pwd  = passwordTextField.text;
        
        if (id!.isEmpty || (pwd!.isEmpty)){
            let alert = UIAlertController(title: "Information!", message: "Username and Password is not empety", preferredStyle: UIAlertControllerStyle.alert)
            alert.addAction(UIAlertAction(title: "Dismiss", style: UIAlertActionStyle.destructive, handler: nil))
            present(alert, animated: true, completion: nil)
            self.present(alert, animated: true, completion: nil)
        }
}

this error :
Warning: Attempt to present <UIAlertController:0x1847000> on <phmis.ViewController:0x17db23b0> whose view is not in the window hierarchy!

please help me..