Created
May 7, 2020 22:39
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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