Skip to content

Commit

Permalink
Set the cell backgroundColor to .clear from iOS 13 onwards
Browse files Browse the repository at this point in the history
this should fix the dark mode issue described in #41
  • Loading branch information
marbetschar committed Nov 5, 2019
1 parent 27ab269 commit 2187fa1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
<key>SplitRowTests.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>6</integer>
<integer>2</integer>
</dict>
<key>[CP] Example.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>7</integer>
<integer>3</integer>
</dict>
<key>[CP] SplitRow.xcscheme</key>
<dict>
Expand Down
3 changes: 3 additions & 0 deletions SplitRow/SplitRowCellTableView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ class SplitRowCellTableView<T: TypedRowType>: UITableView, UITableViewDelegate,

open func setup(){
guard let row = self.row else{ return }
if #available(iOS 13.0, *) {
row.baseCell.backgroundColor = .clear
}
row.baseCell.setup()
row.baseCell.selectionStyle = .none
}
Expand Down

0 comments on commit 2187fa1

Please sign in to comment.