From f2e12f6b2e8dae5e65d4ac3d5d799a41694fb002 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Tue, 31 Dec 2024 17:46:39 -0800 Subject: [PATCH] Draw account row separators in Feeds view all the way across, ignoring safe area insets. --- .../Cell/MainFeedTableViewSectionHeader.swift | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/iOS/MainFeed/Cell/MainFeedTableViewSectionHeader.swift b/iOS/MainFeed/Cell/MainFeedTableViewSectionHeader.swift index 794aa550b..af9b91e4b 100644 --- a/iOS/MainFeed/Cell/MainFeedTableViewSectionHeader.swift +++ b/iOS/MainFeed/Cell/MainFeedTableViewSectionHeader.swift @@ -193,10 +193,15 @@ private extension MainFeedTableViewSectionHeader { titleView.setFrameIfNotEqual(layout.titleRect) unreadCountView.setFrameIfNotEqual(layout.unreadCountRect) disclosureButton.setFrameIfNotEqual(layout.disclosureButtonRect) - - let top = CGRect(x: safeAreaInsets.left, y: 0, width: frame.width - safeAreaInsets.right - safeAreaInsets.left, height: 0.33) + + let x = -safeAreaInsets.left + let width = safeAreaInsets.left + safeAreaInsets.right + frame.width + let height = 0.33 + + let top = CGRect(x: x, y: 0, width: width, height: height) topSeparatorView.setFrameIfNotEqual(top) - let bottom = CGRect(x: safeAreaInsets.left, y: frame.height - 0.33, width: frame.width - safeAreaInsets.right - safeAreaInsets.left, height: 0.33) + + let bottom = CGRect(x: x, y: frame.height - height, width: width, height: height) bottomSeparatorView.setFrameIfNotEqual(bottom) }