From 0be7ecbde6b2930d69405461de50efe2c56ba0fe Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Sat, 26 Jul 2025 18:41:27 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Remove=20setNeedsLayout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- iOS/MainTimeline/Modern Cells/MainTimelineFeedCell.swift | 4 ---- iOS/MainTimeline/Modern Cells/MainTimelineIconFeedCell.swift | 1 - 2 files changed, 5 deletions(-) diff --git a/iOS/MainTimeline/Modern Cells/MainTimelineFeedCell.swift b/iOS/MainTimeline/Modern Cells/MainTimelineFeedCell.swift index ae34fe0a1..c28dfa51d 100644 --- a/iOS/MainTimeline/Modern Cells/MainTimelineFeedCell.swift +++ b/iOS/MainTimeline/Modern Cells/MainTimelineFeedCell.swift @@ -83,7 +83,6 @@ class MainTimelineFeedCell: UITableViewCell { self.indicatorView.iconImage = nil } } - setNeedsLayout() } private func applyTitleTextWithAttributes(_ state: UICellConfigurationState) { @@ -107,7 +106,6 @@ class MainTimelineFeedCell: UITableViewCell { attributedCellText.append(summaryAttributed) } articleTitle.attributedText = attributedCellText - setNeedsLayout() } override func updateConfiguration(using state: UICellConfigurationState) { @@ -132,8 +130,6 @@ class MainTimelineFeedCell: UITableViewCell { } self.backgroundConfiguration = backgroundConfig - setNeedsLayout() - } diff --git a/iOS/MainTimeline/Modern Cells/MainTimelineIconFeedCell.swift b/iOS/MainTimeline/Modern Cells/MainTimelineIconFeedCell.swift index fd78f3e4d..ef82d93e6 100644 --- a/iOS/MainTimeline/Modern Cells/MainTimelineIconFeedCell.swift +++ b/iOS/MainTimeline/Modern Cells/MainTimelineIconFeedCell.swift @@ -82,7 +82,6 @@ class MainTimelineIconFeedCell: UITableViewCell { ]) setNeedsLayout() - layoutIfNeeded() } private func updateIndicatorView(_ cellData: MainTimelineCellData) {