A view that emits confetti 🎉
A view that emits confetti with shapes, images, and text of your choosing for a specified duration, and then fades out.
let confettiView = ConfettiView() confettiView.emit(with: [ .text("👨🏻"), .text("📱"), .shape(.circle, .purple), .shape(.triangle, .lightGray), .image(star, .orange) ])
For more information, see the accompanying blog post on NSHipster.
To run the example project, clone the repo and run
pod installfrom the Example directory.
You can install ConfettiView via CocoaPods by adding the following line to your
pod installcommand to download the library and integrate it into your Xcode project.
Note The module name for this library is "ConfettiView" --- that is, to use it, you addimport ConfettiViewto the top of your Swift code just as you would by any other installation method. The pod is called "NSHipster-ConfettiView" because there's an existing pod with the name "ConfettiView".
ConfettiView is available under the MIT license. See the LICENSE file for more information.