func tableView()

in eCommerce/Controllers/ProductsViewController.swift [142:152]


    func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
        let headerView = UIView.init(frame: CGRect.init(x: 0, y: 0, width: tableView.frame.width, height: 120))
        let title = UILabel()
        title.frame = CGRect.init(x: 16, y: 0, width: headerView.frame.width, height: headerView.frame.height)
        title.textColor = .white
        title.font = UIFont(name: "AmazonEmber-Bold", size: 24)
        title.text = "All Products"
        headerTitleLabel = title
        headerView.addSubview(title)
        return headerView
    }