Skip to content
A view that emits confetti πŸŽ‰
Swift Ruby
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ConfettiView Initial commit Aug 24, 2019
Example Initial commit Aug 24, 2019
.gitignore Initial commit Aug 24, 2019
.travis.yml Set sdk to iphonesimulator12.2 Aug 25, 2019
ConfettiView-NSHipster.podspec Initial commit Aug 24, 2019
LICENSE Initial commit Aug 24, 2019
README.md Initial commit Aug 24, 2019
_Pods.xcodeproj Initial commit Aug 24, 2019

README.md

ConfettiView

CI Status Version License Platform

NSHipster ConfettiView

A view that emits confetti with shapes, images, and text of your choosing for a specified duration, and then fades out.

import ConfettiView

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.


Example

To run the example project, clone the repo and run pod install from the Example directory.

Requirements

  • iOS 10.0+

Installation

You can install AnyCodable via CocoaPods by adding the following line to your Podfile:

pod 'ConfettiView-NSHipster'

Run the pod install command 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 add import ConfettiView to 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".

Author

Mattt (@mattt)

License

ConfettiView is available under the MIT license. See the LICENSE file for more information.

You can’t perform that action at this time.