mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-04-27 02:14:45 +00:00
fixes 965 (#991)
This commit is contained in:
parent
0fe7519307
commit
0011b25a1c
2 changed files with 6 additions and 0 deletions
|
@ -68,6 +68,10 @@ extension AppQLPreviewController: QLPreviewControllerDelegate {
|
||||||
func previewControllerWillDismiss(_: QLPreviewController) {
|
func previewControllerWillDismiss(_: QLPreviewController) {
|
||||||
dismiss(animated: true)
|
dismiss(animated: true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func previewControllerDidDismiss(_ controller: QLPreviewController) {
|
||||||
|
dismiss(animated: true)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct TransparentBackground: UIViewControllerRepresentable {
|
struct TransparentBackground: UIViewControllerRepresentable {
|
||||||
|
|
|
@ -279,6 +279,8 @@ public struct StatusRowMediaPreviewView: View {
|
||||||
.frame(maxWidth: isNotifications ? imageMaxHeight : nil)
|
.frame(maxWidth: isNotifications ? imageMaxHeight : nil)
|
||||||
.frame(height: imageMaxHeight)
|
.frame(height: imageMaxHeight)
|
||||||
}
|
}
|
||||||
|
// #965: do not create overlapping tappable areas, when multiple images are shown
|
||||||
|
.contentShape(Rectangle())
|
||||||
.onTapGesture {
|
.onTapGesture {
|
||||||
Task {
|
Task {
|
||||||
await quickLook.prepareFor(urls: attachments.compactMap { $0.url }, selectedURL: attachment.url!)
|
await quickLook.prepareFor(urls: attachments.compactMap { $0.url }, selectedURL: attachment.url!)
|
||||||
|
|
Loading…
Reference in a new issue