diff --git a/Tusker/Views/Attachments/AttachmentView.swift b/Tusker/Views/Attachments/AttachmentView.swift index 98d314d8..10f6112f 100644 --- a/Tusker/Views/Attachments/AttachmentView.swift +++ b/Tusker/Views/Attachments/AttachmentView.swift @@ -198,6 +198,10 @@ extension AttachmentView: UIContextMenuInteractionDelegate { return UIContextMenuConfiguration(identifier: nil, previewProvider: { () -> UIViewController? in if self.attachment.kind == .image { return AttachmentPreviewViewController(attachment: self.attachment) + } else if self.attachment.kind == .gifv { + let vc = GifvAttachmentViewController(attachment: self.attachment) + vc.preferredContentSize = self.image?.size ?? .zero + return vc } else { return self.delegate?.attachmentViewGallery(startingAt: self.index) }