         flake.contents = whiteImage?.cgImage
         return flake
     }
-
 }
-

        backgroundView.image = #imageLiteral(resourceName: "background")
        backgroundView.contentMode = .scaleAspectFill
        view.addSubview(backgroundView)
        
        // Snow
        emitter = CAEmitterLayer()
        emitter.emitterPosition = CGPoint(x: view.frame.size.width / 2.0, y: 0)
        emitter.emitterShape = kCAEmitterLayerLine
        emitter.emitterSize = CGSize(width: view.frame.size.width, height: 1)
        
        var cells = [CAEmitterCell]()
        cells.append(snowFlakeWith(color: UIColor.white))
        
        emitter.emitterCells = cells
        view.layer.addSublayer(emitter)
    }
    
    override func viewDidAppear(_ animated: Bool) {

    }

    override func viewWillLayoutSubviews() {
        backgroundView.frame = self.view.frame        
    }
    
    public func startSnowing() {
