From 5f0297f237a03abed3d143a429514d42b08fb1ab Mon Sep 17 00:00:00 2001 From: Satindar Dhillon Date: Fri, 25 Feb 2022 13:13:51 -0800 Subject: [PATCH] copy text to pasteboard when tapping email button --- .../Sources/App/Views/Profile/NewsletterEmailsView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apple/OmnivoreKit/Sources/App/Views/Profile/NewsletterEmailsView.swift b/apple/OmnivoreKit/Sources/App/Views/Profile/NewsletterEmailsView.swift index 3f326d949..58d00977e 100644 --- a/apple/OmnivoreKit/Sources/App/Views/Profile/NewsletterEmailsView.swift +++ b/apple/OmnivoreKit/Sources/App/Views/Profile/NewsletterEmailsView.swift @@ -70,7 +70,7 @@ struct NewsletterEmailsView: View { Section(header: Text("Existing Emails (Tap to copy)")) { ForEach(viewModel.emails) { newsletterEmail in Button( - action: {}, + action: { UIPasteboard.general.string = newsletterEmail.email }, label: { Text(newsletterEmail.email) } ) }