This repository was archived by the owner on Jan 19, 2022. It is now read-only.
Commit 05bde10 1 parent 068c631 commit 05bde10 Copy full SHA for 05bde10
File tree 3 files changed +8
-13
lines changed
3 files changed +8
-13
lines changed Original file line number Diff line number Diff line change
1
+ # Version 1.2.2
2
+
3
+ - Remove useless print statements from guards
4
+
1
5
# Version 1.2.1
2
6
3
7
- Fix line dash property when using ` viewStyle = 3 ` not being set properly, thanks to [ RomainBSQT] ( https://github.com/RomainBSQT ) .
Original file line number Diff line number Diff line change 2
2
Pod ::Spec . new do |s |
3
3
4
4
s . name = "UICircularProgressRing"
5
- s . version = "1.2.1 "
5
+ s . version = "1.2.2 "
6
6
s . summary = "A highly customizable circular progress bar for iOS written in Swift 3"
7
7
8
8
s . description = <<-DESC
Original file line number Diff line number Diff line change @@ -149,10 +149,7 @@ class UICircularProgressRingLayer: CAShapeLayer {
149
149
Sets path properties according to how the user has decided to customize the view.
150
150
*/
151
151
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 }
156
153
157
154
let width = bounds. width
158
155
let height = bounds. width
@@ -185,10 +182,7 @@ class UICircularProgressRingLayer: CAShapeLayer {
185
182
Sets path properties according to how the user has decided to customize the view.
186
183
*/
187
184
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 }
192
186
193
187
let center = CGPoint ( x: bounds. midX, y: bounds. midY)
194
188
@@ -224,10 +218,7 @@ class UICircularProgressRingLayer: CAShapeLayer {
224
218
Only drawn if shouldShowValueText = true
225
219
*/
226
220
private func drawValueLabel( ) {
227
- guard shouldShowValueText else {
228
- print ( " Not drawing value label because shouldShowValueText = false " )
229
- return
230
- }
221
+ guard shouldShowValueText else { return }
231
222
232
223
// Draws the text field
233
224
// Some basic label properties are set
You can’t perform that action at this time.
0 commit comments