diff --git a/Pod/Classes/SAConfettiView.swift b/Pod/Classes/SAConfettiView.swift index 12c15ab..76166bf 100644 --- a/Pod/Classes/SAConfettiView.swift +++ b/Pod/Classes/SAConfettiView.swift @@ -104,8 +104,8 @@ public class SAConfettiView: UIView { confetti.color = color.CGColor confetti.velocity = CGFloat(350.0 * intensity) confetti.velocityRange = CGFloat(80.0 * intensity) - confetti.emissionLongitude = CGFloat(M_PI) - confetti.emissionRange = CGFloat(M_PI_4) + confetti.emissionLongitude = CGFloat(Double.pi) + confetti.emissionRange = CGFloat(Double.pi / 4) confetti.spin = CGFloat(3.5 * intensity) confetti.spinRange = CGFloat(4.0 * intensity) confetti.scaleRange = CGFloat(intensity)