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
Thanks in advance