From 9c42a3d7cc6d8bd4834ff0101c1ed3d7f843976c Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Wed, 8 May 2024 11:03:25 +0200 Subject: [PATCH] Add copy button for alt text --- .../StatusKit/Row/Subviews/StatusRowMediaPreviewView.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Packages/StatusKit/Sources/StatusKit/Row/Subviews/StatusRowMediaPreviewView.swift b/Packages/StatusKit/Sources/StatusKit/Row/Subviews/StatusRowMediaPreviewView.swift index 6e2b16ef..193b8694 100644 --- a/Packages/StatusKit/Sources/StatusKit/Row/Subviews/StatusRowMediaPreviewView.swift +++ b/Packages/StatusKit/Sources/StatusKit/Row/Subviews/StatusRowMediaPreviewView.swift @@ -288,6 +288,7 @@ struct AltTextButton: View { isPresented: $isDisplayingAlert ) { Button("alert.button.ok", action: {}) + Button("status.action.copy-text", action: { UIPasteboard.general.string = text }) } message: { Text(text) }