UIProgressView setProgress
<p>I am attempting to implement a UIProgress view. I run the function setProgress each time the end of an iteration is performed in a for loop. The progress is set like this:</p>

<pre><code>let progress: Float = Float(i + 1) / Float(list.count)
</code></pre>

<p>And the progress function looks like this:</p>

<pre><code>progressView.setProgress(progress, animated: true)
</code></pre>

<p>Yet, the progress bar is not updated on each loop. Why is this?</p>