diff --git a/IceCubesApp/App/QuickLookRepresentable.swift b/IceCubesApp/App/QuickLookRepresentable.swift index 786ee2fa..187ada69 100644 --- a/IceCubesApp/App/QuickLookRepresentable.swift +++ b/IceCubesApp/App/QuickLookRepresentable.swift @@ -68,6 +68,10 @@ extension AppQLPreviewController: QLPreviewControllerDelegate { func previewControllerWillDismiss(_: QLPreviewController) { dismiss(animated: true) } + + func previewControllerDidDismiss(_ controller: QLPreviewController) { + dismiss(animated: true) + } } struct TransparentBackground: UIViewControllerRepresentable { diff --git a/Packages/Status/Sources/Status/Row/Subviews/StatusRowMediaPreviewView.swift b/Packages/Status/Sources/Status/Row/Subviews/StatusRowMediaPreviewView.swift index 08666aa7..8d1a901d 100644 --- a/Packages/Status/Sources/Status/Row/Subviews/StatusRowMediaPreviewView.swift +++ b/Packages/Status/Sources/Status/Row/Subviews/StatusRowMediaPreviewView.swift @@ -279,6 +279,8 @@ public struct StatusRowMediaPreviewView: View { .frame(maxWidth: isNotifications ? imageMaxHeight : nil) .frame(height: imageMaxHeight) } + // #965: do not create overlapping tappable areas, when multiple images are shown + .contentShape(Rectangle()) .onTapGesture { Task { await quickLook.prepareFor(urls: attachments.compactMap { $0.url }, selectedURL: attachment.url!)