UIProgressView setProgress animation is messed up
<p>For some reason, <code>UIProgressView.setProgress(1, animate: true)</code> causes a messed up animation to occur. The picture below shows the problem. First off, it animates from the center outward and it starts slightly above its actual location.
<a href="https://i.stack.imgur.com/MO7s1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MO7s1.png" alt="enter image description here"></a></p>

<p>So here is the full view controller code that contains the UIProgressView</p>

<pre><code>import UIKit

class ViewController: UIViewController {

    @IBOutlet weak var progressBar: UIProgressView!

    override func viewDidLoad() {
        super.viewDidLoad()
        progressBar.setProgress(1, animated: true)
    }
}
</code></pre>