Im testing against this: case 0,6,7,13,14,20,21,27,28,34,35,41:
The case == the position of cells in collectionview.
I am trying to get the string interpolation to equal the cells position.
case 0,6,7,13,14,20,21,27,28,34,35,41:
if Int(cell.dayOfMonth.text = "\(indexPath.item)" > 0 { // <=== I get the error on this line
cell.dayOfMonth.textColor = UIColor.lightGray
}
Topic:
Programming Languages
SubTopic:
Swift
Tags: