zashi-ios-wallet-private/secant/Dependencies/PasteboardKey.swift

23 lines
596 B
Swift

//
// PasteboardKey.swift
// secant-testnet
//
// Created by Lukáš Korba on 01.11.2022.
//
import ComposableArchitecture
// TODO: Ensure that sensitive information can't be logged intentionally or by accident #444.
// https://github.com/zcash/secant-ios-wallet/issues/444
private enum PasteboardKey: DependencyKey {
static let liveValue = WrappedPasteboard.live
static let testValue = WrappedPasteboard.test
}
extension DependencyValues {
var pasteboard: WrappedPasteboard {
get { self[PasteboardKey.self] }
set { self[PasteboardKey.self] = newValue }
}
}