
by Luiz Mello
@luizmellodevAdvanced particle system with confetti, hearts, stars, and custom shapes. Features physics simulation with gravity, customizable colors, sizes, velocities, and emission angles. Includes ready-to-use ConfettiButton and particle emitter modifier.
struct Particle: Identifiable {
let id = UUID()
var position: CGPoint
var velocity: CGPoint
var scale: CGFloat
var rotation: Double
var opacity: Double
var color: Color
var shape: ParticleShape
var lifetime: TimeInterval
var age: TimeInterval = 0
}