Remove chevrons from timeline. Issue #1067

This commit is contained in:
Maurice Parker 2019-09-26 20:01:13 -05:00
parent 59f58ca424
commit 9c8f5b7d65
3 changed files with 2 additions and 9 deletions

View File

@ -45,7 +45,7 @@ struct MasterTimelineAccessibilityCellLayout: MasterTimelineCellLayout {
self.avatarImageRect = CGRect.zero
}
let textAreaWidth = width - (currentPoint.x + MasterTimelineDefaultCellLayout.chevronWidth + MasterTimelineDefaultCellLayout.cellPadding.right + insets.right)
let textAreaWidth = width - (currentPoint.x + MasterTimelineDefaultCellLayout.cellPadding.right + insets.right)
// Title Text Block
let (titleRect, numberOfLinesForTitle) = MasterTimelineAccessibilityCellLayout.rectForTitle(cellData, currentPoint, textAreaWidth)

View File

@ -42,8 +42,6 @@ struct MasterTimelineDefaultCellLayout: MasterTimelineCellLayout {
return UIFont.preferredFont(forTextStyle: .body)
}
static let chevronWidth = CGFloat(integerLiteral: 28)
let height: CGFloat
let unreadIndicatorRect: CGRect
let starRect: CGRect
@ -78,7 +76,7 @@ struct MasterTimelineDefaultCellLayout: MasterTimelineCellLayout {
self.avatarImageRect = CGRect.zero
}
let textAreaWidth = width - (currentPoint.x + MasterTimelineDefaultCellLayout.chevronWidth + MasterTimelineDefaultCellLayout.cellPadding.right + insets.right)
let textAreaWidth = width - (currentPoint.x + MasterTimelineDefaultCellLayout.cellPadding.right + insets.right)
// Title Text Block
let (titleRect, numberOfLinesForTitle) = MasterTimelineDefaultCellLayout.rectForTitle(cellData, currentPoint, textAreaWidth)

View File

@ -130,7 +130,6 @@ private extension MasterTimelineTableViewCell {
func commonInit() {
addAccessoryView()
addSubviewAtInit(titleView, hidden: false)
addSubviewAtInit(summaryView, hidden: true)
addSubviewAtInit(unreadIndicatorView, hidden: true)
@ -141,10 +140,6 @@ private extension MasterTimelineTableViewCell {
}
func addAccessoryView() {
accessoryView = UIImageView(image: AppAssets.chevronRightImage)
}
func updatedLayout(width: CGFloat) -> MasterTimelineCellLayout {
if UIApplication.shared.preferredContentSizeCategory.isAccessibilityCategory {
return MasterTimelineAccessibilityCellLayout(width: width, insets: safeAreaInsets, cellData: cellData)