Latest 0.1.2
Homepage https://github.com/qyz777/YZEmitterLayer
License MIT
Platforms ios 8.0
Authors

License

Demo

demo

Requirements

Swift 4.0+

Installation

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

pod 'YZEmitterLayer'

Usage

import YZEmitterLayer

let tap = UITapGestureRecognizer.init(target: self, action: #selector(begin))
view.addGestureRecognizer(tap)

@objc func begin() {
        let animationLayer = YZEmitterLayer.emitterLayer(size: CGSize.init(width: 32, height: 32), center: view.center, image: UIImage.init(named: "love")!)
        animationLayer.yz_delegate = self
        animationLayer.fromAlpha = 1.0
        animationLayer.toAlpha = 0
        animationLayer.fromScale = 0
        animationLayer.toScale = 1
        animationLayer.roateRange = Double.pi / 4
        animationLayer.startAnimation()
}

Author

qyz777, [email protected]

License

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

Latest podspec

{
    "name": "YZEmitterLayer",
    "version": "0.1.2",
    "summary": "YZEmitterLayer by QYiZhong.",
    "description": "A simple emitter layer. You can use it to make some animated cartoons.",
    "homepage": "https://github.com/qyz777/YZEmitterLayer",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "qyz777": "[email protected]"
    },
    "source": {
        "git": "https://github.com/qyz777/YZEmitterLayer.git",
        "tag": "0.1.2"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "YZEmitterLayer/Classes/**/*",
    "swift_version": "4.2"
}

Pin It on Pinterest

Share This