Swiftpack.co - NSHipster/ConfettiView as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by NSHipster.
NSHipster/ConfettiView 0.3.1
A view that emits confetti 🎉
⭐️ 546
🕓 3 years ago
iOS
.package(url: "https://github.com/NSHipster/ConfettiView.git", from: "0.3.1")

ConfettiView

Build Status License CocoaPods platforms CocoaPods compatible Swift Package Manager compatible

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)
]) {
  // Optional completion handler fires when animation finishes.
}

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+
  • Swift 5.1+

Installation

You can install ConfettiView 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 "ConfettiView-NSHipster" 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.

GitHub

link
Stars: 546
Last commit: 3 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

2 years ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics