Fixes “more” button incorrectly (dis-)appearing on update cells

This commit is contained in:
Riley Testut
2024-02-15 19:32:54 -06:00
committed by Magesh K
parent d07b3e6c3a
commit 1f83ea00d3

View File

@@ -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 }