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 get thumbnail from video URL in Swift 5

Missing system image Android Studio solution

How to customize your date according to Timezone in Swift 5