fix(core): ListViewCell.initWithEmptyBackground (#8985)

This commit is contained in:
Jean-Francois Turcot
2020-10-25 21:05:43 -04:00
committed by GitHub
parent 86c689ef7e
commit 0eb2246b7d

View File

@@ -30,7 +30,7 @@ class ListViewCell extends UITableViewCell {
public static initWithEmptyBackground(): ListViewCell {
const cell = <ListViewCell>ListViewCell.new();
// Clear background by default - this will make cells transparent
cell.backgroundColor = null;
cell.backgroundColor = UIColor.clearColor;
return cell;
}
@@ -38,7 +38,7 @@ class ListViewCell extends UITableViewCell {
initWithStyleReuseIdentifier(style: UITableViewCellStyle, reuseIdentifier: string): this {
const cell = <this>super.initWithStyleReuseIdentifier(style, reuseIdentifier);
// Clear background by default - this will make cells transparent
cell.backgroundColor = null;
cell.backgroundColor = UIColor.clearColor;
return cell;
}