From a61ac9d23804ec37ebcda1587f6adc49c3464004 Mon Sep 17 00:00:00 2001 From: Stephen Aldous Date: Mon, 3 Apr 2017 13:42:07 -0400 Subject: [PATCH] Changed M_PI and M_PI_4 to Double.pi and Double.pi / 4 to support Swift 3.1 and Xcode 8.3 --- Pod/Classes/SAConfettiView.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)