Skip to content

Commit

Permalink
Merge pull request #41 from Themakew/master
Browse files Browse the repository at this point in the history
Changing future deprecated M_PI to Double.pi
  • Loading branch information
pmusolino committed Mar 29, 2017
2 parents 78fd2c3 + fa17269 commit 89097ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Library/PMAlertController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,11 @@ import UIKit

@objc fileprivate func animateDismissWithGravity(_ style: PMAlertActionStyle){
if gravityDismissAnimation == true{
var radian = M_PI
var radian = Double.pi
if style == .default {
radian = 2 * M_PI
radian = 2 * Double.pi
}else{
radian = -2 * M_PI
radian = -2 * Double.pi
}
animator = UIDynamicAnimator(referenceView: self.view)

Expand Down

0 comments on commit 89097ee

Please sign in to comment.