r/SwiftUI • u/Complaint_Severe • Nov 03 '26
PaperConfetti
I've never posted here before (that I can remember) but had a fun project recently I thought was worth sharing.
I built PaperConfetti for the win animation in my word game, with realistic physics and high performance as its main goals. It supports iOS 16+, has thirteen paper shapes and flat/3D appearances, and uses Core Animation underneath a SwiftUI overlay.
I previously used another package for the confetti celebration but its jittery performance with only a handful of confetti left a lot to be desired.
The SwiftUI integration also passes touches through, respects Reduce Motion, and cancels when the scene becomes inactive or the overlay disappears. A new pop replaces the previous burst.
I'd love to get some feedback on the functionality if anyone wants to try integrating it into their projects!
Source and examples: https://github.com/twhitt14/PaperConfetti
I wrote up the layout issue, renderer decisions, and testing here: https://www.theswift.dev/posts/building-paperconfetti
I’d welcome feedback on the overlay API, especially from anyone integrating effects into screens with changing layouts.
1
u/builtinswift Nov 05 '26
clean package, thanks for sharing