Skip to content

Commit af47160

Browse files
authored
Update UIControlItemsCell.swift
1 parent be29b5e commit af47160

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Sources/UIControlViewItem/UIControlItemsCell.swift

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import UIKit
2-
import Foundation
32

43
class UIControlItemsCell: UICollectionViewCell {
54

@@ -88,7 +87,9 @@ class UIControlItemsCell: UICollectionViewCell {
8887

8988
self.backgroundColor = auto
9089
case .standard:
91-
self.backgroundColor = UIColor.darkGray.withAlphaComponent(0.05)
90+
let auto = UIControlViewHelper.detectTheme(dark: .clear, light: .darkGray.withAlphaComponent(0.05), any: .clear)
91+
92+
self.backgroundColor = auto
9293
case .customHEX(let hex):
9394
let color = UIControlViewHelper.HexToUIColor(hex).withAlphaComponent(0.05)
9495
let auto = UIControlViewHelper.detectTheme(dark: .clear, light: color, any: .clear)

0 commit comments

Comments
 (0)