Advertisement
Guest User

Untitled

a guest
Jan 17th, 2023
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.51 KB | None | 0 0
  1. func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
  2.     return 10
  3. }
  4.  
  5. func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
  6.     let footerView = UIView()
  7.     footerView.backgroundColor = .clear
  8.     return footerView
  9. }
  10.  
  11.  
  12. or
  13.  
  14. func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) {
  15.     cell.contentView.layoutMargins.top = 10
  16.     cell.contentView.layoutMargins.bottom = 10
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement