Skip to content

Commit

Permalink
Merge pull request #6 from felipericieri/master
Browse files Browse the repository at this point in the history
Swift 3.1 warnings
  • Loading branch information
samuelbeek authored Jul 13, 2017
2 parents d4b3830 + b3ff008 commit d21607d
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 13 deletions.
31 changes: 21 additions & 10 deletions Example/Pods/Pods.xcodeproj/project.pbxproj

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Pod/Classes/RecordButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@
circleBorder.cornerRadius = self.frame.size.width / 2
layer.insertSublayer(circleBorder, at: 0)

let startAngle: CGFloat = CGFloat(M_PI) + CGFloat(M_PI_2)
let endAngle: CGFloat = CGFloat(M_PI) * 3 + CGFloat(M_PI_2)
let startAngle: CGFloat = CGFloat(Double.pi) + CGFloat(Double.pi / 2)
let endAngle: CGFloat = CGFloat(Double.pi) * 3 + CGFloat(Double.pi / 2)
let centerPoint: CGPoint = CGPoint(x: self.frame.size.width / 2, y: self.frame.size.height / 2)
gradientMaskLayer = self.gradientMask()
progressLayer = CAShapeLayer()
Expand Down Expand Up @@ -177,7 +177,7 @@
gradientLayer.locations = [0.0, 1.0]
let topColor = progressColor
let bottomColor = progressColor
gradientLayer.colors = [topColor?.cgColor, bottomColor?.cgColor]
gradientLayer.colors = [topColor!.cgColor, bottomColor!.cgColor]
return gradientLayer
}

Expand Down

0 comments on commit d21607d

Please sign in to comment.