Vortex icon indicating copy to clipboard operation
Vortex copied to clipboard

Fix VortexViewReader not finding particle system sometimes.

Open stewa opened this issue 1 year ago • 2 comments

The Vortex System wasn't found for some view combinations

VortexViewReader { proxy in ZStack { ScrollView { ... }
VortexView(.confetti) { .. } } }

never seemed to work for example.

stewa avatar Jul 13 '24 21:07 stewa

Thank you for this! Sorry for taking so long to reply; I moved house, and my life has been rather chaotic 😬

Are you saying the problem goes away fully with this change? It does affect the behavior slightly, because it will now choose the last particle system in a reader rather than the first.

twostraws avatar Jul 31 '24 11:07 twostraws

Hi!

It solved all my issues including confetti not working over a a ScrollView in a ZStack. But I'll have to admit my testing coverage isn't great and my SwiftUI knowledge is still quite basic.

stewa avatar Aug 21 '24 08:08 stewa