The Safest Multiple UIAlertController in For Loop Swift 4.2

If you want to show many alerts for in loop. You can use recursive becuse it's more simple and not complicated. I found the way on stackoverflow and it works like a champ. But it doesn't work when i use present to view controller and then show alert. It's like method present UIViewController only wants one work at the time. So i do this way you can see below code.


I just use dependent present so that's how it works. Hope it helps you all.

Popular posts from this blog

How to restart the app with flutter Android and iOS

How to have ConstraintLayout inside ScrollView and ScrollView inside ConstraintLayout Android

Missing system image Android Studio solution