Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ziligy/ConfettiView
a Confetti View for SwiftUI
https://github.com/ziligy/ConfettiView
animation swift swiftui
Last synced: about 1 month ago
JSON representation
a Confetti View for SwiftUI
- Host: GitHub
- URL: https://github.com/ziligy/ConfettiView
- Owner: ziligy
- License: mit
- Created: 2020-05-27T18:49:51.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-26T20:24:24.000Z (almost 4 years ago)
- Last Synced: 2024-08-03T18:12:06.303Z (5 months ago)
- Topics: animation, swift, swiftui
- Language: Swift
- Size: 53.4 MB
- Stars: 130
- Watchers: 3
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-swiftui-libraries - ConfettiView - a Confetti View for SwiftUI (Confetti / Content)
README
# ConfettiView
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
```swift
import SwiftUI
import ConfettiViewstruct 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)