A SwiftUI View that emits confetti with user-defined shapes, images, and text.
ConfettiView is available through Swift Package Manager
File -> Swift Packages -> Add Package Dependency...
import SwiftUI
import ConfettiView
struct ContentView: View {
let confettiView = ConfettiView( confetti: [
.text("🎉"),
.text("💪"),
.shape(.circle),
.shape(.triangle),
])
var body: some View {
confettiView
}
}
see included example for:
inspiration and code influences
link |
Stars: 126 |
Last commit: 3 years ago |
merged PRs
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics