commit 29bba15230a1d6840b5f27ab91f3ea24ee073f32
parent fb179ac1d4f1a00530493ff98ccd0b341ce7534c
Author: Suhail Saqan <suhail.saqan@gmail.com>
Date: Sat, 5 Aug 2023 12:53:52 -0500
qr: dismiss qrcode fullScreenCover on scan
Signed-off-by: William Casarin <jb55@jb55.com>
Changelog-Fixed: Dismiss qr screen on scan
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/damus/Views/QRCodeView.swift b/damus/Views/QRCodeView.swift
@@ -258,6 +258,7 @@ struct QRCodeView: View {
DispatchQueue.main.asyncAfter(deadline: .now() + animationDuration) {
if let scanResult {
damus_state.nav.push(route: Route.ProfileByKey(pubkey: scanResult.pubkey))
+ presentationMode.wrappedValue.dismiss()
}
}
}