Swift

EasyConfetti

🎊 Fancy confetti effects in Swift

O

onmyway133

Dernière activité 12 déc. 2025
onmyway133/EasyConfetti

560

étoiles

48

forks

1

issues ouvertes

cheerconfettieffectiosparticle

Ce README est souvent en anglais.

EasyConfetti

Buy Me A Coffee

❤️ Support my apps ❤️

❤️❤️😇😍🤘❤️❤️

Usage

Basic

// Create the view
let confettiView = ConfettiView()
view.addSubview(confettiView)

// Configure
confettiView.config.particle = .confetti(allowedShapes: Particle.ConfettiShape.all)

// Start
confettiView.start()

// Stop
confettiView.stop()

Configuration

Configuration will be applied at the next start

// Use predefined confetti
confettiView.config.particle = .confetti(allowedShapes: Particle.ConfettiShape.all)

// Use texts
let string = NSAttributedString(string: "❤️", attributes: [
  NSFontAttributeName: UIFont.systemFont(ofSize: 15)
])
confettiView.config.particle = .text([string])

// Use images
let image = UIImage(named: "star")
confettiView.config.particle = .image([image])

// Change colors
confettiView.config.colors = [UIColor.red, UIColor.green]

// Customize cells
confettiView.config.customize = { cells in

}

Installation

EasyConfetti is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'EasyConfetti'

EasyConfetti is also available through Carthage. To install just write into your Cartfile:

github "hyperoslo/EasyConfetti"

EasyConfetti is also available through Accio. To install just write into your Package.swift:

.package(url: "https://github.com/onmyway133/EasyConfetti.git", .upToNextMajor(from: "2.3.0")),

Then link EasyConfetti in your App target like so:

.target(
    name: "App",
    dependencies: [
        "EasyConfetti",
    ]
),

EasyConfetti can also be installed manually. Just download and drop Sources folders in your project.

Author

Credit

Contributing

We would love you to contribute to EasyConfetti, check the CONTRIBUTING file for more info.

License

EasyConfetti is available under the MIT license. See the LICENSE file for more info.

Projets similaires

SwiftUI Package for Configurable Confetti Animation 🎉

Swiftanimationswiftui
Ssimibac
2,5 k étoiles174

Celebrate every moment in your app. Customizable confetti with presets, haptics, sound. Supports UIKit and SwiftUI.

Swiftcocoapodsconfetticonfetti-animation
Uugurethemaydin
271 étoiles32

Delightful SwiftUI effects for your app

Swiftanimationeffectsios
EEmergeTools
4,4 k étoiles199