Type Safely

Type Safely

Share this post

Type Safely
Type Safely
Prevent Screen Recording From Capturing Anything In Your App
Copy link
Facebook
Email
Notes
More

Prevent Screen Recording From Capturing Anything In Your App

Daily Coding Tip 269

Type Safely's avatar
Type Safely
Mar 19, 2023
∙ Paid

Share this post

Type Safely
Type Safely
Prevent Screen Recording From Capturing Anything In Your App
Copy link
Facebook
Email
Notes
More
Share
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 …

Keep reading with a 7-day free trial

Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Type Safely
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share

Copy link
Facebook
Email
Notes
More