Prevent screen recording

I have an app that provides videos that i want to prevent leaking by screen recording i just used UIScreen.main.isCaptured and add uiview to top of window it worked but if i closed the app from the background and start recording then i opened the app it doesn't work so how can i prevent this from happening .
Thanks in advance
You can try to make it a bother by requiring they keep a touch on the screen, but in the end, all a user has to do is point a camera at the screen and they're good to go.

See https://developer.apple.com/forums/thread/61124

As always, if there is something you don't want captured, don't put it on the screen.

Good luck.
It's not possible to prevent screen recording.
And yet... the people at Confide seem to have done it?

Search for "ScreenShieldKit" (I can't include a link here).
Prevent screen recording
 
 
Q