Vortex icon indicating copy to clipboard operation
Vortex copied to clipboard

Issue #13 The initial position set for burst

Open MKG26 opened this issue 1 year ago • 3 comments

#13

MKG26 avatar May 05 '24 21:05 MKG26

Thank you! I'm a bit confused: the initial position works great for me with the current code, on both macOS and iOS. Is there somewhere specific that shows the problem you're trying to fix?

twostraws avatar May 06 '24 07:05 twostraws

To set an initial position for the burst effect in your ConfettiView, possibly due to issues with accessing the proxy. To solve this, I suggest moving the .onAppear modifier to the outer VortexViewReader, ensuring that the initial position is calculated correctly based on the proxy size. By making this adjustment, I can ensure that the burst effect occurs at the desired location when the view is first displayed to the user.

MKG26 avatar May 09 '24 10:05 MKG26

Sorry, perhaps I'm not being terribly clear. You're modifying the sandbox app. Right now the sandbox app seems to work with confetti just fine, no matter where the user first taps. Unless there is a very different bug at play, there is no confetti when the user first sees the view – it's created when they tap, at which point the position is correct.

twostraws avatar May 09 '24 10:05 twostraws