Skip to content

Commit

Permalink
[Electric-Coin-Company#1097] Zashi-iOS audit Issue E
Browse files Browse the repository at this point in the history
- copy with expiry time set draft
  • Loading branch information
LukasKorba committed Mar 6, 2024
1 parent 6970b6f commit 79a947d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@

import ComposableArchitecture
import UIKit
import UniformTypeIdentifiers

extension PasteboardClient: DependencyKey {
public static let liveValue = Self(
setString: { UIPasteboard.general.string = $0.data },
setString: {
//UIPasteboard.general.string = $0.data
UIPasteboard.general.setItems([[UTType.utf8PlainText.identifier: $0.data]], options: [.expirationDate: Date(timeIntervalSinceNow: 10)])
},
getString: { UIPasteboard.general.string?.redacted }
)
}

0 comments on commit 79a947d

Please sign in to comment.