
ICConfetti
It's raining confetti.
Confettis are love.
Make it fun for everybody. Did your user just finish a workout? Or just unlocked a new character? Or just cleared level 42? Celebrate. Celebrate hard. Celebrate with confettis all over the screen.
It's raining confettis in two lines of code.
README.md
View on GitHubvar icConfetti: ICConfetti!
override func viewDidLoad() {
super.viewDidLoad()
icConfetti = ICConfetti()
icConfetti.rain(in: self.view)
}
Mix in. Max out.
Set up the visual aspect of the rain. Configure the particles along with their colors and their velocities as you please.
README.md
View on GitHub// Customize the colors... 🎨
icConfetti.colors = [.red, .green, .yellow, .blue]
// Tailor the confetti images. White template images work the best. 🖼
icConfetti.images = [
UIImage(named: "Box")!,
UIImage(named: "Circle")!,
UIImage(named: "Triangle")!,
UIImage(named: "Spiral")!
]
// Throttle the velocities... 🏎
icConfetti.velocities = [100, 128, 144, 512]