ConfettiDemo

main

shaundon/ConfettiDemo

Confetti Demo

This a proof of concept of a confetti view in SwiftUI. I'm using it in production in my apps Personal Best and Taylor's Version. It runs smoothly at 60fps (120fps on ProMotion-enabled devices) and includes haptic feedback.

Demo

Demo of the confetti view

The main interface is a View extension, which allows confetti to be attached to any view:

Text("Hello world")
    .withConfetti(isVisible: $confettiVisible)

See ContentView.swift for where it's used.

Description

  • Swift Tools
View More Packages from this Author

Dependencies

  • None
Last updated: Mon Oct 21 2024 20:51:03 GMT-0900 (Hawaii-Aleutian Daylight Time)