Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

🎊 Fancy confetti effects in Swift

License

NotificationsYou must be signed in to change notification settings

onmyway133/EasyConfetti

Repository files navigation

Buy Me A Coffee

❤️ Support my apps ❤️

❤️❤️😇😍🤘❤️❤️

Usage

Basic

// Create the viewletconfettiView=ConfettiView()view.addSubview(confettiView)// ConfigureconfettiView.config.particle=.confetti(allowedShapes:Particle.ConfettiShape.all)// StartconfettiView.start()// StopconfettiView.stop()

Configuration

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}

Installation

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.

Author

Credit

Contributing

We would love you to contribute toEasyConfetti, check theCONTRIBUTING file for more info.

License

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


[8]ページ先頭

©2009-2025 Movatter.jp