fixes 965 (#991)

This commit is contained in:
Julian Kahnert 2023-02-22 07:04:02 +01:00 committed by GitHub
parent 0fe7519307
commit 0011b25a1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -68,6 +68,10 @@ extension AppQLPreviewController: QLPreviewControllerDelegate {
func previewControllerWillDismiss(_: QLPreviewController) {
dismiss(animated: true)
}
func previewControllerDidDismiss(_ controller: QLPreviewController) {
dismiss(animated: true)
}
}
struct TransparentBackground: UIViewControllerRepresentable {

View file

@ -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!)