refactor(android): centralize clipboard handling

This commit is contained in:
Daniel Arantes Loverde
2026-04-17 14:44:27 -03:00
parent 3c78f2558e
commit 246e1a272b
4 changed files with 36 additions and 19 deletions

View File

@@ -692,12 +692,7 @@ struct PaymentPixView: View {
}
private func copyToClipboard(_ value: String) {
#if canImport(UIKit)
UIPasteboard.general.string = value
#elseif canImport(AppKit)
NSPasteboard.general.clearContents()
NSPasteboard.general.setString(value, forType: .string)
#endif
appWriteClipboardText(value)
}
private var parsedExpirationDate: Date? {