let emitterCell = CAEmitterCell() let emitterLayer = CAEmitterLayer() emitterLayer.emitterCells = [emitterCell] view.layer.addSublayer(emitterLayer) let button =