SnowFalling
SnowFalling copied to clipboard
Removing old flakes
There is simple issue where when you restart the animation the previous flakes are stuck at the bottom. I fixed this by removing the flakes from the superview in stopSnow()..
func stopSnow() { for v: UIImageView in flakesArray! { v.layer.removeAllAnimations() v.removeFromSuperview() <-------------------------- } flakesArray = nil }