Swiftpack.co - ziligy/ConfettiView as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by ziligy.
ziligy/ConfettiView 1.1.0
a Confetti View for SwiftUI
⭐️ 126
🕓 3 years ago
iOS
.package(url: "https://github.com/ziligy/ConfettiView.git", from: "1.1.0")

ConfettiView

A SwiftUI View that emits confetti with user-defined shapes, images, and text.

SwiftUI ConfettiView by ziligy

Installation

ConfettiView is available through Swift Package Manager

  • In Xcode choose File -> Swift Packages -> Add Package Dependency...
  • Paste this Github URL (https://github.com/ziligy/ConfettiView ) into the search bar and click Next.
  • When repository displays, click Next.
  • When loaded, click Finish.

Simple Use

import SwiftUI
import ConfettiView

struct ContentView: View {

    let confettiView = ConfettiView( confetti: [
                .text("🎉"),
                .text("💪"),
                .shape(.circle),
                .shape(.triangle),
            ])

    var body: some View {
        confettiView
    }
}

Example

see included example for:

  • timed-celebration
  • fade out
  • including images

Apps Using ConfettiView

Attributions

inspiration and code influences

GitHub

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

Release Notes

merged PRs
3 years ago

merged PRs

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