ScreenRecorder when viewdidloaded() finish?

I'm trying to make an Swift app with idea that will be record screen automatically right away when app started without pressing any button to start the record. I 've tried AVFoundation, Replaykit.. but all of those stuff need to press Start Recording Button
Hope that can help somehow:
https ://www.hackingwithswift. com/example-code/media/how-to-record-user-videos-using-replaykit

But it is not fully automatic, as you need to ask permission. And I don't think you can avoid this step.
ScreenRecorder when viewdidloaded() finish?
 
 
Q