Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ziligy/ConfettiView

a Confetti View for SwiftUI
https://github.com/ziligy/ConfettiView

animation swift swiftui

Last synced: about 2 months ago
JSON representation

a Confetti View for SwiftUI

Awesome Lists containing this project

README

        

# 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`*

- 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
```swift
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
- [Murph Counter in App Store](https://apps.apple.com/us/app/murph-counter/id1518634872)

## Attributions
*inspiration and code influences*
- [NSHipster](https://github.com/NSHipster/ConfettiView)
- [ArthurGuibert](https://github.com/ArthurGuibert/SwiftUI-Particles)