From 915dd8301544351d34cf65a45bcce5c2bf7ea125 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Wed, 26 Oct 2022 17:20:16 -0500 Subject: [PATCH] Fixes Error Log context menu covering cell content --- .../Settings/Error Log/ErrorLogTableViewCell.swift | 12 ++++++++++++ AltStore/Settings/Settings.storyboard | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/AltStore/Settings/Error Log/ErrorLogTableViewCell.swift b/AltStore/Settings/Error Log/ErrorLogTableViewCell.swift index 5fa63551..a1f66b07 100644 --- a/AltStore/Settings/Error Log/ErrorLogTableViewCell.swift +++ b/AltStore/Settings/Error Log/ErrorLogTableViewCell.swift @@ -8,6 +8,18 @@ import UIKit +@objc(ErrorLogMenuButton) +private class ErrorLogMenuButton: UIButton +{ + @available(iOS 14.0, *) + override func menuAttachmentPoint(for configuration: UIContextMenuConfiguration) -> CGPoint + { + var point = super.menuAttachmentPoint(for: configuration) + point.y = self.bounds.midY + return point + } +} + @objc(ErrorLogTableViewCell) class ErrorLogTableViewCell: UITableViewCell { diff --git a/AltStore/Settings/Settings.storyboard b/AltStore/Settings/Settings.storyboard index 7e54e313..a646b5a0 100644 --- a/AltStore/Settings/Settings.storyboard +++ b/AltStore/Settings/Settings.storyboard @@ -949,7 +949,7 @@ Settings by i cons from the Noun Project -