From 16d13c430c65a2fef1e2e9610ce4763d1212aa34 Mon Sep 17 00:00:00 2001 From: nythepegasus Date: Mon, 6 May 2024 20:07:53 -0400 Subject: [PATCH] Fixes Error Log context menu covering cell content --- .../Settings/Error Log/ErrorLogTableViewCell.swift | 10 ++++++++++ AltStore/Settings/Settings.storyboard | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/AltStore/Settings/Error Log/ErrorLogTableViewCell.swift b/AltStore/Settings/Error Log/ErrorLogTableViewCell.swift index 71b67b88..0e4f817c 100644 --- a/AltStore/Settings/Error Log/ErrorLogTableViewCell.swift +++ b/AltStore/Settings/Error Log/ErrorLogTableViewCell.swift @@ -8,6 +8,16 @@ import UIKit +@objc(ErrorLogMenuButton) +private final 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) final class ErrorLogTableViewCell: UITableViewCell { diff --git a/AltStore/Settings/Settings.storyboard b/AltStore/Settings/Settings.storyboard index a0b20cbb..6010a907 100644 --- a/AltStore/Settings/Settings.storyboard +++ b/AltStore/Settings/Settings.storyboard @@ -1150,7 +1150,7 @@ Settings by i cons from the Noun Project -