ivanvorobei / SPConfetti

Show the confetti only when the user is having fun, and if not having fun, don't show it.

Home Page:https://opensource.ivanvorobei.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Displaying over Sheets

blockiyt opened this issue · comments

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!

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

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 👀

Ah, SwiftUI. In it I think no available.

But if I make a UIViewRepresentable, would this work?

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

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.

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.

@ivanvorobei Hi, Ivan, 😄

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