https://github.com/OrRon/ConfettiView
Confetti View lets you create a magnificent confetti view in your app
https://github.com/OrRon/ConfettiView
Last synced: 4 months 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 (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-02-09T08:06:57.000Z (about 6 years ago)
- Last Synced: 2024-11-18T03:38:15.727Z (5 months 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://cocoapods.org/pods/ConfettiView)
[](http://cocoapods.org/pods/ConfettiView)
[](https://swift.org/)
[](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 :)

It reacts to the phone accelerometer therefore it's better to run the example project on the device.
## Usage
### With Interface Builder

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.