- Notifications
You must be signed in to change notification settings - Fork48
🎊 Fancy confetti effects in Swift
License
onmyway133/EasyConfetti
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
❤️ Support my apps ❤️
- Push Hero - pure Swift native macOS application to test push notifications
- PastePal - Pasteboard, note and shortcut manager
- My other apps
❤️❤️😇😍🤘❤️❤️
// Create the viewletconfettiView=ConfettiView()view.addSubview(confettiView)// ConfigureconfettiView.config.particle=.confetti(allowedShapes:Particle.ConfettiShape.all)// StartconfettiView.start()// StopconfettiView.stop()
Configuration will be applied at the nextstart
// Use predefined confetticonfettiView.config.particle=.confetti(allowedShapes:Particle.ConfettiShape.all)// Use textsletstring=NSAttributedString(string:"❤️", attributes:[ NSFontAttributeName:UIFont.systemFont(ofSize:15)])confettiView.config.particle=.text([string])// Use imagesletimage=UIImage(named:"star")confettiView.config.particle=.image([image])// Change colorsconfettiView.config.colors=[UIColor.red,UIColor.green]// Customize cellsconfettiView.config.customize={ cellsin}
EasyConfetti is available throughCocoaPods. To installit, simply add the following line to your Podfile:
pod'EasyConfetti'
EasyConfetti is also available throughCarthage.To install just write into your Cartfile:
github"hyperoslo/EasyConfetti"
EasyConfetti is also available throughAccio.To install just write into your Package.swift:
.package(url:"https://github.com/onmyway133/EasyConfetti.git",.upToNextMajor(from:"2.3.0")),
Then linkEasyConfetti
in your App target like so:
.target( name:"App", dependencies:["EasyConfetti",]),
EasyConfetti can also be installed manually. Just download and dropSources
folders in your project.
- Khoa Pham,onmyway133@gmai.com
- Hyper Interaktiv AS,ios@hyper.no
- Background image in the demo is fromhttp://www.freepik.com/
We would love you to contribute toEasyConfetti, check theCONTRIBUTING file for more info.
EasyConfetti is available under the MIT license. See theLICENSE file for more info.
About
🎊 Fancy confetti effects in Swift