fix: checkmark background color lost for unselected poll issue

This commit is contained in:
CMK 2022-06-05 16:42:14 +08:00
parent b91b3fa23d
commit c8fa5430d3
1 changed files with 3 additions and 1 deletions

View File

@ -101,7 +101,9 @@ extension PollOptionView {
.receive(on: DispatchQueue.main) .receive(on: DispatchQueue.main)
.sink { [weak self] theme in .sink { [weak self] theme in
guard let self = self else { return } guard let self = self else { return }
self.checkmarkBackgroundView.backgroundColor = theme.tertiarySystemBackgroundColor self.checkmarkBackgroundView.backgroundColor = UIColor(dynamicProvider: { trailtCollection in
return trailtCollection.userInterfaceStyle == .light ? .white : theme.tableViewCellSelectionBackgroundColor
})
} }
.store(in: &disposeBag) .store(in: &disposeBag)
} }