0

mates

I am trying to duplicate the exact look of iOS 6 tableview static cell and section of static cells on iOS 9 and above with Swift 4.

I want to achieve this look:

enter image description here

This code rounds the cell edges:

@IBOutlet weak var cell: UITableViewCell!
cell.layer.cornerRadius = 10
cell.layer.masksToBounds = true

Questions:

  1. How to round the edges of a section?
  2. How to indent cell and section borders inwards?
Martin
  • 179
  • 1
  • 10

0 Answers0