I enabled the code for window-level screenshot protection. When I added the following snippet:
guard superview != nil else { for subview in subviews { subview.setScreenCaptureProtection(config: config) } return }
it blocks the screen at the layer level. The initial screen works fine, but when I navigate to the next screen, I can’t access it.
If I comment out the code, everything works fine. But when I enable it with accessibility turned on, the app crashes at the layer level.
Can you help me for that
I enabled the code for window-level screenshot protection. When I added the following snippet:
guard superview != nil else { for subview in subviews { subview.setScreenCaptureProtection(config: config) } return }it blocks the screen at the layer level. The initial screen works fine, but when I navigate to the next screen, I can’t access it.
If I comment out the code, everything works fine. But when I enable it with accessibility turned on, the app crashes at the layer level.
Can you help me for that