diff --git a/CardParts.podspec b/CardParts.podspec index d6cf8d4..dd77981 100644 --- a/CardParts.podspec +++ b/CardParts.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'CardParts' - s.version = '3.3.0' + s.version = '3.4.0' s.platform = :ios s.summary = 'iOS Card UI framework.' diff --git a/CardParts/src/Classes/Card Parts/CardPartConfettiView.swift b/CardParts/src/Classes/Card Parts/CardPartConfettiView.swift index b8553cb..f4257ee 100644 --- a/CardParts/src/Classes/Card Parts/CardPartConfettiView.swift +++ b/CardParts/src/Classes/Card Parts/CardPartConfettiView.swift @@ -55,12 +55,12 @@ public class CardPartConfettiView: UIView, CardPartView { emitter.emitterPosition = CGPoint(x: frame.size.width / 2.0, y: 0) emitter.emitterShape = shape emitter.emitterSize = CGSize(width: frame.size.width, height: 1) - emitter.beginTime = CACurrentMediaTime() //construct the cells var cells = [CAEmitterCell]() for (index,color) in colors.enumerated() { let colorConfetti = confetti(with: color, for: index) + colorConfetti.beginTime = CACurrentMediaTime() cells.append(colorConfetti) }