From 1f83ea00d36d6bf77b262ce47b31cf375b7b499f Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Thu, 15 Feb 2024 19:32:54 -0600 Subject: [PATCH] =?UTF-8?q?Fixes=20=E2=80=9Cmore=E2=80=9D=20button=20incor?= =?UTF-8?q?rectly=20(dis-)appearing=20on=20update=20cells?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AltStore/My Apps/MyAppsViewController.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AltStore/My Apps/MyAppsViewController.swift b/AltStore/My Apps/MyAppsViewController.swift index d07bb2a1..91e16e9c 100644 --- a/AltStore/My Apps/MyAppsViewController.swift +++ b/AltStore/My Apps/MyAppsViewController.swift @@ -272,6 +272,10 @@ private extension MyAppsViewController cell.versionDescriptionTextView.moreButton.addTarget(self, action: #selector(MyAppsViewController.toggleUpdateCellMode(_:)), for: .primaryActionTriggered) cell.setNeedsLayout() + + // Below lines are necessary to avoid "more" button layout issues. + cell.versionDescriptionTextView.setNeedsLayout() + cell.layoutIfNeeded() } dataSource.prefetchHandler = { (installedApp, indexPath, completionHandler) in guard let iconURL = installedApp.storeApp?.iconURL else { return nil }