Fix VortexViewReader not finding particle system sometimes.
The Vortex System wasn't found for some view combinations
VortexViewReader { proxy in
ZStack {
ScrollView {
...
}
VortexView(.confetti) {
..
}
}
}
never seemed to work for example.
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.
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.