1
0
mirror of https://github.com/mastodon/mastodon-ios.git synced 2025-01-26 15:24:54 +01:00

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

View File

@ -101,7 +101,9 @@ extension PollOptionView {
.receive(on: DispatchQueue.main)
.sink { [weak self] theme in
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)
}