Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 1.28 KB

README.md

File metadata and controls

50 lines (36 loc) · 1.28 KB

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

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