ScreenshotPreventing-iOS icon indicating copy to clipboard operation
ScreenshotPreventing-iOS copied to clipboard

How to work on iOS 16.4 in SwiftUI.

Open shun77768 opened this issue 1 year ago • 5 comments

Hi, @yoxisem544. Thank you for your amazing tool.

I have a few questions. When I set your tools on iOS 16.4 in SwiftUI, I can't tap list column and my app's layout is not working well. And I can't move to a detailed page. The preventing screenshot function is working well.

How do I fix it? Thank you.

shun77768 avatar May 15 '23 09:05 shun77768

can you try adding

if #available(iOS 16, *) { return "_UITextContainerView" }

to getHiddenContainerTypeInStringRepresentation

mmdock avatar May 30 '23 18:05 mmdock

It's not work.

zihjielitw avatar Jun 07 '23 08:06 zihjielitw

Hi,

I've try to run in all ios16.* versions and its working fine. I created a template for you can test if you want. https://github.com/vitor-otero/testScreenShot16.git

If you have any trouble let me know. Cheers 🍻

vitor-otero avatar Jun 14 '23 15:06 vitor-otero

It just doesn't work for me, the screenshot is made. I tested on a Simulator with this code:

    var body: some Scene {
        WindowGroup {
            NavigationStack {
                ScreenshotPrevent(isProtected: true) {
                    MyElement()
                }
            }
            .environmentObject(...)
            .environmentObject(...)
        }
    }

I use iOS 16.4

acmpo6ou avatar Aug 05 '23 10:08 acmpo6ou

@acmpo6ou @vitor-otero @zihjielitw @mmdock @shun77768 ScreenShield is a similar library that provides a simple way to protect your app's content from being captured or recorded by screenshots and screen recordings, supported in iOS 17 as well. ScreenShield

JayantBadlani avatar Apr 18 '24 05:04 JayantBadlani