I have a view for the iPhone that is basically split in two, with an informational display in the top half, and a UITableView for selecting actions in the bottom half. The prob
Swift 4
extension UITableView { func addTableHeaderViewLine() { self.tableHeaderView = { let line = UIView(frame: CGRect(x: 0, y: 0, width: self.frame.size.width, height: 1 / UIScreen.main.scale)) line.backgroundColor = self.separatorColor return line }() } }