Remove separator accent when switching to darkmode

This commit is contained in:
Maurice Parker 2019-10-25 15:56:09 -05:00
parent 21aaf71cbf
commit e1a571fab3
1 changed files with 2 additions and 0 deletions

View File

@ -93,6 +93,8 @@ class MasterTimelineTableViewCell: VibrantTableViewCell {
if traitCollection.userInterfaceStyle == .light { if traitCollection.userInterfaceStyle == .light {
let separatorAccentRect = CGRect(x: safeAreaInsets.left, y: frame.height - 2, width: frame.width - safeAreaInsets.right - safeAreaInsets.left, height: 1) let separatorAccentRect = CGRect(x: safeAreaInsets.left, y: frame.height - 2, width: frame.width - safeAreaInsets.right - safeAreaInsets.left, height: 1)
separatorAccent.setFrameIfNotEqual(separatorAccentRect) separatorAccent.setFrameIfNotEqual(separatorAccentRect)
} else {
separatorAccent.setFrameIfNotEqual(.zero)
} }
} }