mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-02-03 16:07:31 +01:00
fixes 965 (#991)
This commit is contained in:
parent
0fe7519307
commit
0011b25a1c
@ -68,6 +68,10 @@ extension AppQLPreviewController: QLPreviewControllerDelegate {
|
||||
func previewControllerWillDismiss(_: QLPreviewController) {
|
||||
dismiss(animated: true)
|
||||
}
|
||||
|
||||
func previewControllerDidDismiss(_ controller: QLPreviewController) {
|
||||
dismiss(animated: true)
|
||||
}
|
||||
}
|
||||
|
||||
struct TransparentBackground: UIViewControllerRepresentable {
|
||||
|
@ -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!)
|
||||
|
Loading…
x
Reference in New Issue
Block a user