title: Date shows nil when debugging but date string has a value, is this some kind of bug in Xcode or expected behavior
body: <p>I'm assigning <code>date</code> to a variable by <code>adding days</code> to current date and get the <code>string</code> from that date like below.</p>
  
  <pre><code>let today = Date()
  let duedate = Calendar.current.date(byAdding: .day, value: due, to: today)
  
  let dateformatter = DateFormatter()
  dateformatter.dateFormat = "MMM dd, yyyy"
  duedateString = dateformatter.string(from: duedate!)
  </code></pre>
  
  <p>This works fine. but when I debug, I'm getting following issue</p>
  
  <p><a href="https://i.stack.imgur.com/tECBB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tECBB.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/5BCAC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5BCAC.png" alt="enter image description here"></a>
   <a href="https://i.stack.imgur.com/UaBUd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UaBUd.png" alt="enter image description here"></a></p>
  
  <p>hope this shouldn't be the expected behavior. anyone has an idea or experienced with this and anyone knows the reason for this. </p>