Skip to content

Commit

Permalink
Merge pull request #432 from SourcePointUSA/DIA-1840_remove-homeview-…
Browse files Browse the repository at this point in the history
…categories-header

[DIA-1840] construction of a header cell is removed from the HomeView's table view for tvOS
  • Loading branch information
andresilveirah committed May 2, 2023
2 parents 9b10c4d + 667b0f9 commit a8a9ae8
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 a8a9ae8

Please sign in to comment.