Not sure what Im doing wrong here. Says "Cannot convert value of type 'String' to expected argument type 'Int'".
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "calCell", for: indexPath) as! CalendarCell
cell.dayOfMonth.text = totalSquares[indexPath.item]
//show the weekend days in different color
switch indexPath.item {
case 0,6,7,13,14,20,21,27,28,34,35,41:
if Int(cell.dayOfMonth.text = "\(indexPath.item)" > 0 {
cell.dayOfMonth.textColor = UIColor.lightGray
}
default:
break
}
return cell
}