Skip to content

Instantly share code, notes, and snippets.

@jimbrayrcp
Created May 7, 2020 22:39
Show Gist options
  • Save jimbrayrcp/1090909226656396bca62eeef490847b to your computer and use it in GitHub Desktop.
Save jimbrayrcp/1090909226656396bca62eeef490847b to your computer and use it in GitHub Desktop.
Increases the separator size between cells by adding a border. Also, corner radius can be removed or added if desired.
let tableCellBGClight: UIColor = systemBlue
// ****** cellForRowAt ******
cell.layer.masksToBounds = true
cell.layer.cornerRadius = 10
cell.layer.borderWidth = 2
cell.layer.shadowOffset = CGSize(width: -1, height: 1)
let borderColor: UIColor = tableCellBGClight
cell.layer.borderColor = borderColor.cgColor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment