Skip to content

goldmoment/FireworkView

Repository files navigation

FireworkView

[![CI Status](http://img.shields.io/travis/Vien V.Nguyen/FireworkView.svg?style=flat)](https://travis-ci.org/Vien V.Nguyen/FireworkView) Version License Platform

Example

alt tag

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

FireworkView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "FireworkView"

Usage

let firework = FireworkView()
firework.translatesAutoresizingMaskIntoConstraints = false
self.view.addSubview(firework)
        
self.view.addConstraints(NSLayoutConstraint.constraintsWithVisualFormat(
    "H:|-0-[firework]-0-|",
    options: [], metrics: nil, views: ["firework" : firework]))
self.view.addConstraints(NSLayoutConstraint.constraintsWithVisualFormat(
    "V:|-0-[firework]-0-|",
    options: [], metrics: nil, views: ["firework" : firework]))

Author

Vien V.Nguyen, nguyenvanvienqn@gmail.com

License

FireworkView is available under the MIT license. See the LICENSE file for more info.