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
/** | |
Extension for UITableViewController or UIViewController as you prefer | |
*/ | |
extension UITableViewController { | |
func colorSection(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) { | |
let cornerRadius: CGFloat = 0.0 | |
cell.backgroundColor = UIColor.clear | |
let layer: CAShapeLayer = CAShapeLayer() | |
let pathRef: CGMutablePath = CGMutablePath() | |
//dx leading an trailing margins |