ConfettiView
  • July 11, 2025

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

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


GitHub


View Github

YOU MIGHT ALSO LIKE...
SwiftUI Colour Wheel

A colour wheel made all in SwiftUI. There are 2 different colour wheels to choose from. The first main one ...

ColorPickerRing

A color picker implementation with color wheel appearance written in plain SwiftUI. It is compatible with UIColor and NSColor.

ASCollectionView

This repository is no longer maintained. Here's why: with the release of iOS 16 SwiftUI now enables most of the ...