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

Commit d371ac4

Browse files
authored
v6.2.0 (#196)
add ability to start timer from some other time closes #184
1 parent 90b0b0e commit d371ac4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+153
-116
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Version 6.2.0
2+
3+
- Adds ability to start the timer ring from a value other than 0.
4+
15
# Version 6.1.0
26

37
- Migrate to Swift 5.0, thanks to [darecki](https://github.com/darecki) for the PR!

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

88
s.description = <<-DESC

docs/Classes.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ <h4>Declaration</h4>
207207
</section>
208208
</section>
209209
<section id="footer">
210-
<p>&copy; 2019 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2019-03-27)</p>
211-
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.5</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
210+
<p>&copy; 2019 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2019-05-26)</p>
211+
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.6</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
212212
</section>
213213
</article>
214214
</div>

docs/Classes/UICircularProgressRing.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -591,8 +591,8 @@ <h4>Declaration</h4>
591591
</section>
592592
</section>
593593
<section id="footer">
594-
<p>&copy; 2019 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2019-03-27)</p>
595-
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.5</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
594+
<p>&copy; 2019 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2019-05-26)</p>
595+
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.6</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
596596
</section>
597597
</article>
598598
</div>

docs/Classes/UICircularRing.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1029,8 +1029,8 @@ <h4>Declaration</h4>
10291029
</section>
10301030
</section>
10311031
<section id="footer">
1032-
<p>&copy; 2019 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2019-03-27)</p>
1033-
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.5</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
1032+
<p>&copy; 2019 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2019-05-26)</p>
1033+
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.6</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
10341034
</section>
10351035
</article>
10361036
</div>

docs/Classes/UICircularTimerRing.html

+14-6
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,9 @@ <h3 class="section-name">API</h3>
183183
<li class="item">
184184
<div>
185185
<code>
186-
<a name="/s:22UICircularProgressRing0a5TimerC0C05startD02to7handlerySd_yAC5StateOcSgtF"></a>
187-
<a name="//apple_ref/swift/Method/startTimer(to:handler:)" class="dashAnchor"></a>
188-
<a class="token" href="#/s:22UICircularProgressRing0a5TimerC0C05startD02to7handlerySd_yAC5StateOcSgtF">startTimer(to:handler:)</a>
186+
<a name="/s:22UICircularProgressRing0a5TimerC0C05startD04from2to7handlerySd_SdyAC5StateOcSgtF"></a>
187+
<a name="//apple_ref/swift/Method/startTimer(from:to:handler:)" class="dashAnchor"></a>
188+
<a class="token" href="#/s:22UICircularProgressRing0a5TimerC0C05startD04from2to7handlerySd_SdyAC5StateOcSgtF">startTimer(from:to:handler:)</a>
189189
</code>
190190
</div>
191191
<div class="height-container">
@@ -195,12 +195,20 @@ <h3 class="section-name">API</h3>
195195
<div class="abstract">
196196
<p>Starts the timer until the given time is elapsed.</p>
197197

198+
<p>Parameters:</p>
199+
200+
<ul>
201+
<li>startTime: the time at which the timer will begin, default is 0.</li>
202+
<li>endtime: the time at which the timer will end, the animation duration will be <code>endTime - startTime</code>.</li>
203+
<li>handler: the handler which is called and updated depending on the state of the timer.</li>
204+
</ul>
205+
198206
</div>
199207
<div class="declaration">
200208
<h4>Declaration</h4>
201209
<div class="language">
202210
<p class="aside-title">Swift</p>
203-
<pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">startTimer</span><span class="p">(</span><span class="n">to</span> <span class="nv">time</span><span class="p">:</span> <span class="kt">TimeInterval</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kt"><a href="../Classes/UICircularTimerRing.html#/s:22UICircularProgressRing0a5TimerC0C0D7Handlera">TimerHandler</a></span><span class="p">?)</span></code></pre>
211+
<pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">startTimer</span><span class="p">(</span><span class="n">from</span> <span class="nv">startTime</span><span class="p">:</span> <span class="kt">TimeInterval</span> <span class="o">=</span> <span class="mf">0.0</span><span class="p">,</span> <span class="n">to</span> <span class="nv">endTime</span><span class="p">:</span> <span class="kt">TimeInterval</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kt"><a href="../Classes/UICircularTimerRing.html#/s:22UICircularProgressRing0a5TimerC0C0D7Handlera">TimerHandler</a></span><span class="p">?)</span></code></pre>
204212

205213
</div>
206214
</div>
@@ -335,8 +343,8 @@ <h4>Declaration</h4>
335343
</section>
336344
</section>
337345
<section id="footer">
338-
<p>&copy; 2019 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2019-03-27)</p>
339-
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.5</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
346+
<p>&copy; 2019 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2019-05-26)</p>
347+
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.6</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
340348
</section>
341349
</article>
342350
</div>

docs/Classes/UICircularTimerRing/State.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ <h4>Declaration</h4>
188188
</section>
189189
</section>
190190
<section id="footer">
191-
<p>&copy; 2019 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2019-03-27)</p>
192-
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.5</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
191+
<p>&copy; 2019 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2019-05-26)</p>
192+
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.6</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
193193
</section>
194194
</article>
195195
</div>

docs/Enums.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ <h4>Declaration</h4>
184184
</section>
185185
</section>
186186
<section id="footer">
187-
<p>&copy; 2019 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2019-03-27)</p>
188-
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.5</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
187+
<p>&copy; 2019 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2019-05-26)</p>
188+
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.6</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
189189
</section>
190190
</article>
191191
</div>

docs/Enums/UICircularRingGradientPosition.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,8 @@ <h4>Declaration</h4>
327327
</section>
328328
</section>
329329
<section id="footer">
330-
<p>&copy; 2019 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2019-03-27)</p>
331-
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.5</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
330+
<p>&copy; 2019 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2019-05-26)</p>
331+
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.6</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
332332
</section>
333333
</article>
334334
</div>

docs/Enums/UICircularRingStyle.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@ <h4>Declaration</h4>
247247
</section>
248248
</section>
249249
<section id="footer">
250-
<p>&copy; 2019 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2019-03-27)</p>
251-
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.5</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
250+
<p>&copy; 2019 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2019-05-26)</p>
251+
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.6</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
252252
</section>
253253
</article>
254254
</div>

docs/Protocols.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ <h4>Declaration</h4>
180180
</section>
181181
</section>
182182
<section id="footer">
183-
<p>&copy; 2019 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2019-03-27)</p>
184-
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.5</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
183+
<p>&copy; 2019 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2019-05-26)</p>
184+
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.6</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
185185
</section>
186186
</article>
187187
</div>

docs/Protocols/UICircularProgressRingDelegate.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,8 @@ <h4>Declaration</h4>
285285
</section>
286286
</section>
287287
<section id="footer">
288-
<p>&copy; 2019 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2019-03-27)</p>
289-
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.5</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
288+
<p>&copy; 2019 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2019-05-26)</p>
289+
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.6</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
290290
</section>
291291
</article>
292292
</div>

docs/Protocols/UICircularRingValueFormatter.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ <h4>Declaration</h4>
136136
</section>
137137
</section>
138138
<section id="footer">
139-
<p>&copy; 2019 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2019-03-27)</p>
140-
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.5</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
139+
<p>&copy; 2019 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2019-05-26)</p>
140+
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.6</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
141141
</section>
142142
</article>
143143
</div>

docs/Structs.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@ <h4>Declaration</h4>
269269
</section>
270270
</section>
271271
<section id="footer">
272-
<p>&copy; 2019 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2019-03-27)</p>
273-
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.5</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
272+
<p>&copy; 2019 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2019-05-26)</p>
273+
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.6</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
274274
</section>
275275
</article>
276276
</div>

docs/Structs/UICircularProgressRingFormatter.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,8 @@ <h4>Declaration</h4>
336336
</section>
337337
</section>
338338
<section id="footer">
339-
<p>&copy; 2019 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2019-03-27)</p>
340-
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.5</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
339+
<p>&copy; 2019 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2019-05-26)</p>
340+
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.6</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
341341
</section>
342342
</article>
343343
</div>

docs/Structs/UICircularRingGradientOptions.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ <h4>Declaration</h4>
277277
</section>
278278
</section>
279279
<section id="footer">
280-
<p>&copy; 2019 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2019-03-27)</p>
281-
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.5</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
280+
<p>&copy; 2019 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2019-05-26)</p>
281+
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.6</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
282282
</section>
283283
</article>
284284
</div>

docs/Structs/UICircularRingValueKnobStyle.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,8 @@ <h4>Declaration</h4>
305305
</section>
306306
</section>
307307
<section id="footer">
308-
<p>&copy; 2019 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2019-03-27)</p>
309-
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.5</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
308+
<p>&copy; 2019 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2019-05-26)</p>
309+
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.6</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
310310
</section>
311311
</article>
312312
</div>

docs/Structs/UICircularTimerRingFormatter.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ <h4>Declaration</h4>
248248
</section>
249249
</section>
250250
<section id="footer">
251-
<p>&copy; 2019 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2019-03-27)</p>
252-
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.5</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
251+
<p>&copy; 2019 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2019-05-26)</p>
252+
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.6</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
253253
</section>
254254
</article>
255255
</div>

docs/docsets/UICircularProgressRing.docset/Contents/Resources/Documents/Classes.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ <h4>Declaration</h4>
207207
</section>
208208
</section>
209209
<section id="footer">
210-
<p>&copy; 2019 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2019-03-27)</p>
211-
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.5</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
210+
<p>&copy; 2019 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2019-05-26)</p>
211+
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.6</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
212212
</section>
213213
</article>
214214
</div>

0 commit comments

Comments
 (0)