Programmatically restart the app for ios version?

Trying to restart the app in my custom error handling. All solutions are good for android but nothing for ios. Urgently needed!!

Have you ever seen an app do this on iOS?

No I haven’t seen it. But in my app, I think it’s a handy feature when there’s an error and the app freezes let the user restart the app by tapping on the screen. Found solution and works on ios as well.