lnlink

iOS app for connecting to lightning nodes
git clone git://jb55.com/lnlink
Log | Files | Refs | Submodules | README | LICENSE

commit 54cc59fbd9eac67160b6baf785ccf9b20968deff
parent a11d2e130429439ea9e865c325ade15aef216381
Author: William Casarin <jb55@jb55.com>
Date:   Thu, 31 Mar 2022 08:58:39 -0700

explicit close keyboard until we can fix tap issues

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mlightninglink/Views/ReceiveView.swift | 12++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/lightninglink/Views/ReceiveView.swift b/lightninglink/Views/ReceiveView.swift @@ -86,7 +86,10 @@ struct ReceiveView: View { Button("Back") { dismiss() } - + } else { + Button("Close") { + close_keyboard() + } } Spacer() @@ -110,10 +113,11 @@ struct ReceiveView: View { } } .padding() - .onTapGesture { - UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), + } + + private func close_keyboard() { + UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil) - } } private func dismiss() {