add press and hold to copy/share
Signed-off-by: Nitesh Balusu <niteshbalusu@icloud.com>
This commit is contained in:
committed by
William Casarin
parent
5885859a48
commit
76ae444024
@@ -36,6 +36,13 @@ struct ConfigView: View {
|
|||||||
UIPasteboard.general.string = state.keypair.pubkey_bech32
|
UIPasteboard.general.string = state.keypair.pubkey_bech32
|
||||||
AudioServicesPlaySystemSound(SystemSoundID(kSystemSoundID_Vibrate))
|
AudioServicesPlaySystemSound(SystemSoundID(kSystemSoundID_Vibrate))
|
||||||
}
|
}
|
||||||
|
.clipShape(RoundedRectangle(cornerRadius: 5))
|
||||||
|
.gesture(
|
||||||
|
LongPressGesture(minimumDuration: 1.0)
|
||||||
|
.onEnded { _ in
|
||||||
|
UIPasteboard.general.string = state.keypair.pubkey_bech32
|
||||||
|
}
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
if let sec = state.keypair.privkey_bech32 {
|
if let sec = state.keypair.privkey_bech32 {
|
||||||
@@ -47,6 +54,13 @@ struct ConfigView: View {
|
|||||||
UIPasteboard.general.string = sec
|
UIPasteboard.general.string = sec
|
||||||
AudioServicesPlaySystemSound(SystemSoundID(kSystemSoundID_Vibrate))
|
AudioServicesPlaySystemSound(SystemSoundID(kSystemSoundID_Vibrate))
|
||||||
}
|
}
|
||||||
|
.clipShape(RoundedRectangle(cornerRadius: 5))
|
||||||
|
.gesture(
|
||||||
|
LongPressGesture(minimumDuration: 1.0)
|
||||||
|
.onEnded { _ in
|
||||||
|
UIPasteboard.general.string = sec
|
||||||
|
}
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
if isHidden == true {
|
if isHidden == true {
|
||||||
|
|||||||
Reference in New Issue
Block a user