Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to work on iOS 16.4 in SwiftUI. #13

Open
shun77768 opened this issue May 15, 2023 · 5 comments
Open

How to work on iOS 16.4 in SwiftUI. #13

shun77768 opened this issue May 15, 2023 · 5 comments

Comments

@shun77768
Copy link

shun77768 commented May 15, 2023

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.

@mmdock
Copy link

mmdock commented May 30, 2023

can you try adding

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

to getHiddenContainerTypeInStringRepresentation

@zihjielitw
Copy link

It's not work.

@vitor-otero
Copy link

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 🍻

@acmpo6ou
Copy link

acmpo6ou commented Aug 5, 2023

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

@JayantBadlani
Copy link

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants