Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 685 Bytes

README.md

File metadata and controls

32 lines (26 loc) · 685 Bytes

ConfettiView 🎉

The prettiest SwiftUI-native confetti.

CI


Get Started

  1. Install ConfettiView
  2. Add ConfettiView to your project
import SwiftUI
import ConfettiView

struct ContentView: View {
    @State var showConfetti = false

    var body: some View {
        Button("Rain on me") {
            showConfetti = true
        }
        .frame(maxWidth: .infinity, maxHeight: .infinity)
        .overlay(ConfettiView(isPresented: $showConfetti))
    }
}

CI