How can I hide or remove the very first line separator of the tableViewCell programmatically?
I just need to remove cell 0 top line.
Something of this nature:
if(indexPath.row == 0){
//remove top seperator
}
How can I hide or remove the very first line separator of the tableViewCell programmatically?
I just need to remove cell 0 top line.
Something of this nature:
if(indexPath.row == 0){
//remove top seperator
}
Within your cellForRowAt
delegate function you can use:
if indexPath.row == 0 {
cell?.separatorInset = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: .greatestFiniteMagnitude)
}