fix: status poll appearance may delay set issue
This commit is contained in:
parent
e5e9f83a23
commit
2d46f81b2b
|
@ -68,7 +68,7 @@ extension PollSection {
|
||||||
cell.pollOptionView.checkmarkImageView.isHidden = true
|
cell.pollOptionView.checkmarkImageView.isHidden = true
|
||||||
case .off:
|
case .off:
|
||||||
ThemeService.shared.currentTheme
|
ThemeService.shared.currentTheme
|
||||||
.receive(on: RunLoop.main)
|
.receive(on: DispatchQueue.main)
|
||||||
.sink { [weak cell] theme in
|
.sink { [weak cell] theme in
|
||||||
guard let cell = cell else { return }
|
guard let cell = cell else { return }
|
||||||
cell.pollOptionView.checkmarkBackgroundView.backgroundColor = theme.tertiarySystemBackgroundColor
|
cell.pollOptionView.checkmarkBackgroundView.backgroundColor = theme.tertiarySystemBackgroundColor
|
||||||
|
@ -80,7 +80,7 @@ extension PollSection {
|
||||||
cell.pollOptionView.checkmarkImageView.isHidden = true
|
cell.pollOptionView.checkmarkImageView.isHidden = true
|
||||||
case .on:
|
case .on:
|
||||||
ThemeService.shared.currentTheme
|
ThemeService.shared.currentTheme
|
||||||
.receive(on: RunLoop.main)
|
.receive(on: DispatchQueue.main)
|
||||||
.sink { [weak cell] theme in
|
.sink { [weak cell] theme in
|
||||||
guard let cell = cell else { return }
|
guard let cell = cell else { return }
|
||||||
cell.pollOptionView.checkmarkBackgroundView.backgroundColor = theme.tertiarySystemBackgroundColor
|
cell.pollOptionView.checkmarkBackgroundView.backgroundColor = theme.tertiarySystemBackgroundColor
|
||||||
|
|
Loading…
Reference in New Issue