1

Tried understanding the other issues similar to this, but couldn't figure it out. Type of expression is ambigous without more context shows on 'CalendarUnitHour' in this line of code:

let components = calendar.components(.CalendarUnitHour | .CalendarUnitMinute | .CalendarUnitMonth | .CalendarUnitYear | .CalendarUnitDay, fromDate: date)
Mykola
  • 3,343
  • 6
  • 23
  • 39
Shift72
  • 426
  • 4
  • 21

0 Answers0