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

Commit 05bde10

Browse files
Luis PadronLuis Padron
Luis Padron
authored and
Luis Padron
committed
Remove useless print statements
1 parent 068c631 commit 05bde10

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Version 1.2.2
2+
3+
- Remove useless print statements from guards
4+
15
# Version 1.2.1
26

37
- Fix line dash property when using `viewStyle = 3` not being set properly, thanks to [RomainBSQT](https://github.com/RomainBSQT).

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.2.1"
5+
s.version = "1.2.2"
66
s.summary = "A highly customizable circular progress bar for iOS written in Swift 3"
77

88
s.description = <<-DESC

UICircularProgressRing/UICircularProgressRingLayer.swift

+3-12
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,7 @@ class UICircularProgressRingLayer: CAShapeLayer {
149149
Sets path properties according to how the user has decided to customize the view.
150150
*/
151151
private func drawOuterRing() {
152-
guard outerRingWidth > 0 else {
153-
print("Not drawing outer ring since outer Ring Width <= 0")
154-
return
155-
}
152+
guard outerRingWidth > 0 else { return }
156153

157154
let width = bounds.width
158155
let height = bounds.width
@@ -185,10 +182,7 @@ class UICircularProgressRingLayer: CAShapeLayer {
185182
Sets path properties according to how the user has decided to customize the view.
186183
*/
187184
private func drawInnerRing() {
188-
guard innerRingWidth > 0 else {
189-
print("Not drawing inner ring since Inner Ring Width <= 0")
190-
return
191-
}
185+
guard innerRingWidth > 0 else { return }
192186

193187
let center = CGPoint(x: bounds.midX, y: bounds.midY)
194188

@@ -224,10 +218,7 @@ class UICircularProgressRingLayer: CAShapeLayer {
224218
Only drawn if shouldShowValueText = true
225219
*/
226220
private func drawValueLabel() {
227-
guard shouldShowValueText else {
228-
print("Not drawing value label because shouldShowValueText = false")
229-
return
230-
}
221+
guard shouldShowValueText else { return }
231222

232223
// Draws the text field
233224
// Some basic label properties are set

0 commit comments

Comments
 (0)