From d7aaca25ee4b7252da4b7c19a27751be396b9749 Mon Sep 17 00:00:00 2001 From: Sam DuBois Date: Tue, 27 Dec 2022 13:25:13 -0700 Subject: [PATCH] Add Context Menu to copy button --- damus/Components/ImageCarousel.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/damus/Components/ImageCarousel.swift b/damus/Components/ImageCarousel.swift index fb9c5af2..0972a4fc 100644 --- a/damus/Components/ImageCarousel.swift +++ b/damus/Components/ImageCarousel.swift @@ -136,6 +136,11 @@ struct ImageCarousel: View { Text(url.absoluteString) } .id(url.absoluteString) + .contextMenu { + Button("Copy Image") { + UIPasteboard.general.string = url.absoluteString + } + } } } }