This must be obvious, but I just don't get it.
I'm trying to write a function where the values of a UIDatePicker and a UIPickerView (for seconds) need to be checked for nil (in case one of them is still spinning). So I had:
let datePicker = view.viewWithTag(9) as! UIDatePicker
if datePicker.date != nil {
}
For which I get a Binary operator '!=' cannot be applied to operands of type 'NSDate' and 'NilLiteralConvertible.