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: Sat Jan 07 2023 10:26:37 GMT-0500 (GMT-05:00)