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

Is it possible to take accurate UIAlertController snapshots? #163

Open
igoriols opened this issue Oct 3, 2021 · 3 comments
Open

Is it possible to take accurate UIAlertController snapshots? #163

igoriols opened this issue Oct 3, 2021 · 3 comments

Comments

@igoriols
Copy link

igoriols commented Oct 3, 2021

Hello, I'm trying to take a UIAlertController snapshot, and I keep getting a transparent image with some content aligned on top.

Is there a proper way to do it?

@alanzeino
Copy link
Collaborator

It may need a UIWindow or to be presented from a UIViewController

@jhon-gomez-fivestars
Copy link

@alanzeino could you provide us a small peace of code for this, I've tried but It didn't work

@alanzeino
Copy link
Collaborator

Maybe it doesn't work then, we've never bothered to snapshot alerts so I don't know

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

3 participants