You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 19, 2022. It is now read-only.
Copy file name to clipboardexpand all lines: CHANGELOG.md
+11
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,14 @@
1
+
# Version 1.7.0
2
+
3
+
#### Highlight: New `UICircularProgressRingView.minValue` property.
4
+
5
+
- Add ability to set a range of values for the ring, unlike before where only `maxValue` could be set. You can now use the new `minValue` to specify a range that the value can fall between. Read the docs to learn about any issues that may arise with setting a `value` less than `minValue`.
6
+
- Fixed bugs related to how many degrees the inner ring for the progress ring draws. Everything should exact now even if not using the `fullCircle` property.
7
+
- Fixed a bug which allowed setting a `value` less than zero. Read the docs to learn why this was an issue.
8
+
- Refactored some unused code and tidied things up a bit
9
+
- Regenerated documentation using Jazzy
10
+
11
+
1
12
# Version 1.6.2
2
13
3
14
#### Highlight: New `UICircularProgressRingDelegate` method.
Copy file name to clipboardexpand all lines: LICENSE
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
Copyright (c) 2016 Luis Padron
1
+
Copyright (c) 2017 Luis Padron
2
2
3
3
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
<p>The value property for the progress ring. ex: (23)/100</p>
208
+
<p>The value property for the progress ring.</p>
209
209
<h2id='important' class='heading'>Important</h2>
210
210
211
211
<p>Default = 0</p>
212
212
213
+
<p>Must be a non-negative value. If this value falls below <code><ahref="../Classes/UICircularProgressRingView.html#/c:@M@UICircularProgressRing@objc(cs)UICircularProgressRingView(py)minValue">minValue</a></code> it will be
214
+
clamped and set equal to <code><ahref="../Classes/UICircularProgressRingView.html#/c:@M@UICircularProgressRing@objc(cs)UICircularProgressRingView(py)minValue">minValue</a></code>.</p>
215
+
213
216
<p>This cannot be used to get the value while the ring is animating, to get
214
-
current value while animating use <code><ahref="../Classes/UICircularProgressRingView.html#/s:22UICircularProgressRing0abC4ViewC12currentValue12CoreGraphics7CGFloatVSgv">currentValue</a></code></p>
217
+
current value while animating use <code><ahref="../Classes/UICircularProgressRingView.html#/s:22UICircularProgressRing0abC4ViewC12currentValue12CoreGraphics7CGFloatVSgv">currentValue</a></code>.</p>
215
218
216
219
<p>The current value of the progress ring after animating, use setProgress(value:)
217
220
to alter the value with the option to animate and have a completion handler.</p>
<p>The minimum value for the progress ring. ex: (0) -> 100.</p>
286
+
<h2id='important' class='heading'>Important</h2>
287
+
288
+
<p>Default = 100</p>
289
+
290
+
<p>Must be a non-negative value, the absolute value is taken when setting this property.</p>
291
+
292
+
<p>The <code><ahref="../Classes/UICircularProgressRingView.html#/c:@M@UICircularProgressRing@objc(cs)UICircularProgressRingView(py)value">value</a></code> of the progress ring must NOT fall below <code>minValue</code> if it does the <code><ahref="../Classes/UICircularProgressRingView.html#/c:@M@UICircularProgressRing@objc(cs)UICircularProgressRingView(py)value">value</a></code> property is clamped
293
+
and will be set equal to <code><ahref="../Classes/UICircularProgressRingView.html#/c:@M@UICircularProgressRing@objc(cs)UICircularProgressRingView(py)value">value</a></code>, you will receive a warning message in the console.</p>
<p>The max value for the progress ring. ex: 23/(100)
283
-
Used to calculate amount of progress depending on self.value and self.maxValue</p>
325
+
<p>The maximum value for the progress ring. ex: 0 -> (100)</p>
284
326
<h2id='important' class='heading'>Important</h2>
285
327
286
328
<p>Default = 100</p>
329
+
330
+
<p>Must be a non-negative value, the absolute value is taken when setting this property.</p>
331
+
332
+
<p>Unlike the <code><ahref="../Classes/UICircularProgressRingView.html#/c:@M@UICircularProgressRing@objc(cs)UICircularProgressRingView(py)minValue">minValue</a></code> member <code><ahref="../Classes/UICircularProgressRingView.html#/c:@M@UICircularProgressRing@objc(cs)UICircularProgressRingView(py)value">value</a></code> can extend beyond <code>maxValue</code>. What happens in this case
333
+
is the inner ring will do an extra loop through the outer ring, this is not noticible however.</p>
0 commit comments