Skip to content

Commit 80a975a

Browse files
authored
Merge pull request #1 from nikans/white-background-fix
Remove background from HostingTableViewCell
2 parents 6c59dd5 + 5ed5c7f commit 80a975a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Sources/SimpleUIList/HostingTableViewCell.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ final class HostingTableViewCell<Content: View>: UITableViewCell {
1616
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
1717
super.init(style: style, reuseIdentifier: reuseIdentifier)
1818
hostingController.view.backgroundColor = .clear
19+
self.backgroundColor = .clear
1920
}
2021

2122
private func removeHostingControllerFromParent() {

Sources/SimpleUIList/TableViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public final class TableViewController<Cell: View, ItemType: Identifiable>: UIVi
3737
tableView.dataSource = self
3838
tableView.separatorStyle = .none
3939
tableView.backgroundColor = .clear
40+
tableView.keyboardDismissMode = .interactive
4041
tableView.register(cellClass: HostingTableViewCell<Cell>.self)
4142
if reversedEnabled {
4243
tableView.transform = CGAffineTransform(scaleX: 1, y: -1)

0 commit comments

Comments
 (0)