Search code examples
iosswiftuitableviewtableview

Cell bottom line truncate


I use basic style for cell in Storyboard and I don't understand why I see truncating bottom line for images:

enter image description here

How this can be fixed? I want bottom grey line will be all the cells bottom long.


Solution

  • for remove:

     self.yourTable.separatorStyle = .none
    

    for stretch out:

     cell.separatorInset = UIEdgeInsets.zero
    

    or

     self.yourTable.separatorInset = .zero