Skip to content

Commit

Permalink
[DIA-1840] construction of a header cell is removed from the HomeView…
Browse files Browse the repository at this point in the history
…'s table view
  • Loading branch information
Nevazhnovu committed Apr 28, 2023
1 parent 3bd819c commit 667b0f9
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,17 +253,6 @@ extension SPGDPRNativePrivacyManagerViewController: UITableViewDataSource {
50
}

func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
let headerView = UIView(frame: CGRect(x: 0, y: 0, width: tableView.frame.width, height: 50))
let categoriesExplainerLabel = UILabel()
loadLabelView(forComponentId: "CategoriesHeader", label: categoriesExplainerLabel)
categoriesExplainerLabel.setDefaultTextColorForDarkMode()
categoriesExplainerLabel.frame = CGRect(x: 5, y: 5, width: headerView.frame.width - 10, height: headerView.frame.height - 10)

headerView.addSubview(categoriesExplainerLabel)
return headerView
}

public func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
categories.count
}
Expand Down

0 comments on commit 667b0f9

Please sign in to comment.