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

Displaying over Sheets #2

Closed
blockiyt opened this issue Sep 30, 2021 · 8 comments
Closed

Displaying over Sheets #2

blockiyt opened this issue Sep 30, 2021 · 8 comments
Assignees

Comments

@blockiyt
Copy link

Describe the problem that you catch
A clear and concise description of what you want to do.
Hey, is it possible to display the confetti over a sheet?
After the first start of the app and displaying the sheet, the confetti is getting displayed over it, after reopening the sheet, it's getting displayed behind it. It's kinda problematic to share a video with you, because I have to blur out all personal data, but If you really need it, I can do it.
I would be glad if you could help :)
Thanks!

@ivanvorobei
Copy link
Owner

@blockiyt i think it's available. You should place confetti at the top layer on your window.

@blockiyt
Copy link
Author

Bildschirmfoto 2021-09-30 um 16 12 23

I'm using it in a Button, in a VStack in a NavigationView. What do you mean with placing in on the top? Sorry haha, but I am new in this area 👀

@ivanvorobei
Copy link
Owner

Ah, SwiftUI. In it I think no available.

@blockiyt
Copy link
Author

blockiyt commented Sep 30, 2021

But if I make a UIViewRepresentable, would this work?

@ivanvorobei
Copy link
Owner

I can't help you with it, I leave issue open - maybe somebody home more experience in SwiftUI.

@blockiyt
Copy link
Author

Ok, but I think I found the problem. The confetti restarts there, where it got stopped. So if I let the confetti completely rain down in the sheet, it works, but if I close it, it end on an other view and starts there again.

@gongzhang
Copy link
Contributor

gongzhang commented Nov 26, 2021

Similar issue. Got this warning:

SPConfetti - Confetti already releases. Please, call `stopAnimating` func before start new animation. For now this call don't have any effect.

@gongzhang
Copy link
Contributor

@ivanvorobei Hi, Ivan, 😄

I'm trying to fix this issuse. Please review 740d4d7 , thanks.

@gongzhang gongzhang mentioned this issue Nov 26, 2021
3 tasks
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