ScreenShield is an iOS library that provides a simple way to protect your app's content from being captured or recorded by screenshots, screen recordings, or other screen capture methods. It works by adding a secure layer on top of your views, which prevents most screen capture mechanisms from recording the underlying content.
@Prathap-Aosta, It's not possible to hide the native OS alerts and menu that appear on a separate layer of the view. If you want to hide the alerts, create your custom alerts.
After the alert popup was displayed, I took a screenshot, but the alert message was not hidden.
Native iOS Menu popup was displayed, I took a screenshot, but the menu was not hidden.
import SwiftUI import ScreenShield
struct ContentView: View { @State private var presentAlert = false @State private var menutext = "" @State private var arrayMenuVal = ["Apple", "Orange", "Mango", "Grape"]
}