I'm implementing my custom state saving, and I just wanted to check if my app has crashed the last time a user use it.
What i thought was this: to wrap the whole main function in @try-catch block and if something is catched to just write something in user defaults.
But is this good idea, or it's bad for the app itself?