Xcode 8 and Swift 3 NSCalendar
<p>I implemented my watch project in Swift and now I am migrating to Swift 3 because of Xcode 8. I let Xcode 8 change the source code to Swift 3.  However, there are errors in the code and I can not figure it out.</p>

<pre><code>let unitFlags: Calendar = [.hour, .firstWeekday, .monthSymbols, .year, .minute, .firstWeekday]

var calendar = NSCalendar.current
calendar.timeZone = NSTimeZone(identifier: "UTC")!
let components = (calendar as NSCalendar).components(unitFlags, from: reservationDate)
</code></pre>

<p>Xcode gives error in these lines and I can not understand the problem.</p>

<blockquote>
  <p>ERROR: Contextual type ' Calendar' cannot be used with array literal </p>
  
  <p>ERROR: Argument labels '(identifier:)' do not match any available
  overloads</p>
  
  <p>ERROR: Cannot convert value of type 'Calendar' to expected argument
  type 'NSCalendar.Unit'</p>
</blockquote>