How does a zero rectangle cover the entire area of "selectedBackgroundView"?

let selectedView = UIView(frame: CGRect.zero)
selectedView.backgroundColor = UIColor(red: 20/255, green: 160/255, blue: 160/255, alpha: 1)
selectedBackgroundView = selectedView

Through iOS Apprentice tutorials I came across the above block of code. How does a zero rectangle cover the entire area of a tableView cell’s background, seeing that the width and height of it is zero? Does it get scaled?

Yes, it gets scaled automatically by the table view to cover the entire area of the cell.