Xcode 8 beta 4: Calendar.Unit vs Calendar.Component
<p>This Swift 3 code worked until XCode 8 beta 3:</p>

<pre><code>let calendar = Calendar.current
let anchorComponents = calendar.components([Calendar.Unit.day, Calendar.Unit.month, Calendar.Unit.year, Calendar.Unit.hour], from: self)
</code></pre>

<p>In Xcode 8 beta 4 <code>Calendar.Unit</code> appears to be renamed to <code>Calendar.Component</code>.</p>

<p>Now this code</p>

<pre><code>let calendar = Calendar.current
let anchorComponents = calendar.components([Calendar.Component.day, Calendar.Component.month, Calendar.Component.year, Calendar.Component.hour], from: self)
</code></pre>

<p>produces the compiler error <code>cannot convert value of type Calendar.Component to NSCalendar.Unit</code></p>

<p>Am I doing anything wrong or is this a bug?</p>