Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to dismiss the alert programatically using swift?

Hi I am new for developing ios application.
I have used some cocopods framework for doing the alert view.
I have used alert view following mentioned sweetAlert.

In that I have tried to dismiss the alert programmatically with out press the tab button in alert.
Please any one help for fix the problem.

like image 747
vara Avatar asked Jul 06 '26 19:07

vara


1 Answers

You can dismiss the alert by calling dismissViewControllerAnimated method on alertController object.

alertControllerObject?.dismissViewControllerAnimated(true, completion: nil)
like image 124
user3608500 Avatar answered Jul 08 '26 13:07

user3608500



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!