Type Safely

Type Safely

Prevent Screen Recording From Capturing Anything In Your App

Daily Coding Tip 269

Type Safely's avatar
Type Safely
Mar 19, 2023
∙ Paid
man standing while wearing black jacket
Photo by Nadine Shaabana on Unsplash

It’s pretty easy to know whether the screen is currently being recorded by getting the value of UIScreen.main.isCaptured.

The problem with this is that I have to know when to check it.

My first version of this code involved monitoring changes in the current scene phase. If the phase had changed to .active, the app had …

User's avatar

Continue reading this post for free, courtesy of Type Safely.

Or purchase a paid subscription.
© 2026 Type Safely · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture