Ambiguous use of 'animate(withDuration:delay:options:animations:)'
<p>I've upgraded to the newly released Xcode 8, and this</p>

<pre><code>let mediumInterval: TimeInterval = 0.6
UIView.animate(withDuration: mediumInterval) {
  print("test")
}
</code></pre>

<p>is giving me the error <code>Ambiguous use of 'animate(withDuration:delay:options:animations:)'</code> I really don't see what ambiguous here... All the <code>animate</code> functions declared in <code>UIView</code> are</p>

<pre><code>open class func animate(withDuration duration: TimeInterval, delay: TimeInterval, options: UIViewAnimationOptions = [], animations: @escaping () -&gt; Swift.Void, completion: (@escaping (Bool) -&gt; Swift.Void)? = nil)

open class func animate(withDuration duration: TimeInterval, animations: @escaping () -&gt; Swift.Void, completion: (@escaping (Bool) -&gt; Swift.Void)? = nil)

open class func animate(withDuration duration: TimeInterval, animations: @escaping () -&gt; Swift.Void)

open class func animate(withDuration duration: TimeInterval, delay: TimeInterval, usingSpringWithDamping dampingRatio: CGFloat, initialSpringVelocity velocity: CGFloat, options: UIViewAnimationOptions = [], animations: @escaping () -&gt; Swift.Void, completion: (@escaping (Bool) -&gt; Swift.Void)? = nil)
</code></pre>

<p>=== solution to get xcode to compile ===</p>

<pre><code>UIView.animate(withDuration: mediumInterval, animation: {
  print("test")
}, completion: nil)
</code></pre>

<p>will compile, </p>

<pre><code>UIView.animate(withDuration: mediumInterval, animation: {
  print("test")
})
</code></pre>

<p>will fail as before. I still don't get what's going on...</p>