Skip to content
This repository was archived by the owner on Jan 19, 2022. It is now read-only.

Commit e0de44e

Browse files
author
Luis Padron
committed
Fix deprecation warnings in new Xcode version
1 parent b5d82ac commit e0de44e

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# Version 1.4.2 (latest)
1+
# Version 1.4.3 (latest)
2+
3+
- Fix deprecation warning in new Xcode version from using `M_PI`
4+
5+
# Version 1.4.2
26

37
- Add new `fullCircle` property to the `UICircularProgressRingView`. Which removes the confusion of setting a valid end angle. For example previously if you wanted a full circle and you wanted the progress to start from the top you could do `startAngle = -90` however this would also require you to subtract 90 from the end angle, since the default is 360. This was not fully understood by some users. Now you have the option using `fullCircle` to set and forget the `startAngle` and the `endAngle` will automagically be corrected for you, thus always giving you a full circle with your desired start ange.
48
- Update some Xcode unit tests

UICircularProgressRing.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Pod::Spec.new do |s|
33

44
s.name = "UICircularProgressRing"
5-
s.version = "1.4.2"
5+
s.version = "1.4.3"
66
s.summary = "A highly customizable circular progress bar for iOS written in Swift 3"
77

88
s.description = <<-DESC

UICircularProgressRing/UICircularProgressRingLayer.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import UIKit
2727
conversion from degrees to radians, used when drawing the rings.
2828
*/
2929
private extension CGFloat {
30-
var toRads: CGFloat { return self * CGFloat(M_PI) / 180 }
30+
var toRads: CGFloat { return self * CGFloat.pi / 180 }
3131
}
3232

3333
/**

0 commit comments

Comments
 (0)