From fede5b29cb83b243995aebc339cd3abd86e31df7 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Wed, 26 Oct 2022 18:12:18 -0500 Subject: [PATCH] Fixes Error Log showing UIAlertController on iOS 14 or later A context menu should appear instead on iOS 14 or later. --- AltStore/Settings/Error Log/ErrorLogViewController.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AltStore/Settings/Error Log/ErrorLogViewController.swift b/AltStore/Settings/Error Log/ErrorLogViewController.swift index 1123414f..68ab57e4 100644 --- a/AltStore/Settings/Error Log/ErrorLogViewController.swift +++ b/AltStore/Settings/Error Log/ErrorLogViewController.swift @@ -122,6 +122,8 @@ private extension ErrorLogViewController { cell.menuButton.showsMenuAsPrimaryAction = true } + + cell.selectionStyle = .none } // Include errorDescriptionTextView's text in cell summary. @@ -269,6 +271,8 @@ extension ErrorLogViewController { override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { + guard #unavailable(iOS 14) else { return } + let loggedError = self.dataSource.item(at: indexPath) let alertController = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet)