From 08e0c3769f496d9133684178c332840789ad65bb Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sun, 16 Aug 2020 14:45:01 -0400 Subject: [PATCH] Make link preview background opaque --- Tusker/Views/ContentTextView.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Tusker/Views/ContentTextView.swift b/Tusker/Views/ContentTextView.swift index 3b90e3c4..9a54da00 100644 --- a/Tusker/Views/ContentTextView.swift +++ b/Tusker/Views/ContentTextView.swift @@ -334,6 +334,7 @@ extension ContentTextView: UIContextMenuInteractionDelegate { // Create a dummy containerview for the snapshot view, since using a view with a CALayer mask and UIPreviewParameters(textLineRects:) // causes the mask to be ignored. See FB7832297 let snapshotContainer = UIView(frame: snapshot.bounds) + snapshotContainer.backgroundColor = .systemBackground snapshotContainer.addSubview(snapshot) let preview = UITargetedPreview(view: snapshotContainer, parameters: parameters, target: target)