File tree Expand file tree Collapse file tree 2 files changed +38
-1
lines changed
Resources/Assets.xcassets/Colors/near-black-grouped.colorset
Sources/Views/ViewControllers Expand file tree Collapse file tree 2 files changed +38
-1
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "colors" : [
3+ {
4+ "color" : {
5+ "platform" : " ios" ,
6+ "reference" : " systemGroupedBackgroundColor"
7+ },
8+ "idiom" : " universal"
9+ },
10+ {
11+ "appearances" : [
12+ {
13+ "appearance" : " luminosity" ,
14+ "value" : " dark"
15+ }
16+ ],
17+ "color" : {
18+ "color-space" : " srgb" ,
19+ "components" : {
20+ "alpha" : " 1.000" ,
21+ "blue" : " 0.059" ,
22+ "green" : " 0.059" ,
23+ "red" : " 0.059"
24+ }
25+ },
26+ "idiom" : " universal"
27+ }
28+ ],
29+ "info" : {
30+ "author" : " xcode" ,
31+ "version" : 1
32+ }
33+ }
Original file line number Diff line number Diff line change @@ -42,7 +42,11 @@ internal class PDAViewController<CustomView: UIView>: UIViewController {
4242 view. backgroundColor = color == . dark ? R . color. nearBlack ( ) : . systemBackground
4343 for subview in view. subviews {
4444 if let tableView = subview as? UITableView {
45- tableView. backgroundColor = color == . dark ? R . color. nearBlack ( ) : . systemBackground
45+ if tableView. style == . plain {
46+ tableView. backgroundColor = color == . dark ? R . color. nearBlack ( ) : . systemBackground
47+ } else {
48+ tableView. backgroundColor = color == . dark ? R . color. nearBlackGrouped ( ) : . systemGroupedBackground
49+ }
4650 }
4751 if let collectionView = subview as? UICollectionView {
4852 collectionView. backgroundColor = color == . dark ? R . color. nearBlack ( ) : . systemBackground
You can’t perform that action at this time.
0 commit comments