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

Flicking in visionOS #45

Open
KlemensStrasser opened this issue Jan 27, 2024 · 2 comments
Open

Flicking in visionOS #45

KlemensStrasser opened this issue Jan 27, 2024 · 2 comments

Comments

@KlemensStrasser
Copy link

KlemensStrasser commented Jan 27, 2024

Hi!

Using ConfettigSwiftUI on iOS and love it there. But while porting the app on visionOS, I noticed that the confettis started to flicker

Tried changing the background, in case this has something to do with the Material, and also tried setting the .offset(z:), but nothing helped yet.

Any idea what could cause this?

COnfetti.mp4

This is my code for the confettis:

.confettiCannon( counter: $confettiCounter, num: 200, confettis: [ .shape(.circle) ], colors: confettiColors, openingAngle: Angle(degrees: 0), closingAngle: Angle(degrees: 360), radius: 200 )

Thanks!

@simibac
Copy link
Owner

simibac commented Jan 30, 2024

That's probably a first 🫶🏻 Does it flicker with fewer confettis too?

@KlemensStrasser
Copy link
Author

@simibac Sorry for the super super late reply, I haven't seen yours and just skipped confetti for visionOS - which is a total shame, everyone deserves their share of confetti!

Yes, it flickered with fewer confettis too on visionOS 1.0.

But the behaviour has changed with visionOS 1.1. Now my particles are not circles anymore, they are half circles. 🫣 And instead of the particles flickering, the text underneath the particles now starts to flicker. Tried to play around with `zIndex´, but that didn't result in anything.

VisonFlickery.mov

Note that I do not have a physical device to see if this is just a problem in the simulator or also on real hardware. 🫣

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

2 participants