title: Difference between NSCalendar.current and NSCalendar.currentCalendar()
body: <p>I'm working on accessing healthkit's Heartrate data and through following the documentation here: <a href="https://developer.apple.com/reference/healthkit/hksamplequery" rel="nofollow">https://developer.apple.com/reference/healthkit/hksamplequery</a>. They call to use the following code snippet </p>
  
  <pre><code>let calendar = NSCalendar.currentCalendar()
  let now = NSDate()
  let components = calendar.components([.Year, .Month, .Day], fromDate: now)
  </code></pre>
  
  <p>However the debugger catches the NSCalendar.currentCalendar() as cannot call value of non-function type calendar. I changed it to NSCalendar.current as suggested by the IDE however then the third line has a problem stating that it cannot use instance member 'calendar' within property initializer. </p>
  
  <p>So my question is what is the difference between NSCalendar.current and NSCalendar.currentCalendar() and what am I doing wrong?</p>
  
  <p>Thanks so much for any help that you can provide.</p>