Post

Replies

Boosts

Views

Activity

Reply to Help! with String Interpolation
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 }
Oct ’21
Reply to Help! with String Interpolation
Im testing the (position of cells in a collectionview): case 0,6,7,13,14,20,21,27,28,34,35,41: But I can't seem to get the string interpolation to equal the cell 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 }
Oct ’21
Reply to Xib file
Correct... My apologies, I didn't specify. I meant as far as using a reusable Identifer...I was unable to add a cell to the collectionview nor was I able to see the identifier name in the property inspector. So I was wondering if it can be done programmatically.
Oct ’21