Skip to content

blsage/ConfettiView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

The prettiest SwiftUI-native confetti

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages