Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/OrRon/ConfettiView
Confetti View lets you create a magnificent confetti view in your app
https://github.com/OrRon/ConfettiView
Last synced: 7 days ago
JSON representation
Confetti View lets you create a magnificent confetti view in your app
- Host: GitHub
- URL: https://github.com/OrRon/ConfettiView
- Owner: OrRon
- License: mit
- Created: 2016-10-04T16:55:34.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-02-09T08:06:57.000Z (almost 6 years ago)
- Last Synced: 2024-11-18T03:38:15.727Z (25 days ago)
- Language: Swift
- Homepage:
- Size: 51.8 KB
- Stars: 234
- Watchers: 6
- Forks: 12
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios-star - ConfettiView - Confetti View lets you create a magnificent confetti view in your app. (UI / Font)
- awesome-ios - ConfettiView - Confetti View lets you create a magnificent confetti view in your app. (UI / Font)
README
![](http://i.imgur.com/kQqv0mb.png)
[![Version](https://img.shields.io/cocoapods/v/ConfettiView.svg?style=flat)](http://cocoapods.org/pods/ConfettiView)
[![License](https://img.shields.io/cocoapods/l/ConfettiView.svg?style=flat)](http://cocoapods.org/pods/ConfettiView)
[![Swift 3.0](https://img.shields.io/badge/Swift-3.0-orange.svg?style=flat)](https://swift.org/)
[![Platform](https://img.shields.io/cocoapods/p/ConfettiView.svg?style=flat)](http://cocoapods.org/pods/ConfettiView)# ConfettiView
Confetti View lets you create a magnificent confetti view in your app. This was inspired by [House Party](https://itunes.apple.com/il/app/houseparty-group-video-chat/id1065781769?mt=8) app's login screen. Written in Swift 3 :)
![](http://i.giphy.com/d31wQ2wbLGRQKtTa.gif)
It reacts to the phone accelerometer therefore it's better to run the example project on the device.
## Usage
### With Interface Builder
![](http://i.imgur.com/Myg6obo.png)
Simply pick a view and change it's type to ConfettiView.
### Programaticlly
ConfettiView is a subclass of UIView
```swift
let confettiView = ConffetiView()
self.view.addSubView(confettiView)
```
### ControlsStart or stop the animation:
```swift
confettiView.stopAnimating()
confettiView.startAnimating()
```Check whether the animation is active:
```swift
confettiView.isAnimating
```By default the animation starts when the view is initialized
## Installation
ConfettiView is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod "ConfettiView"
```## Author
Or Ron, [email protected]
[@or_ron](https://twitter.com/or_ron)
## License
ConfettiView is available under the MIT license. See the LICENSE file for more info.