qr: dismiss qrcode fullScreenCover on scan
Signed-off-by: William Casarin <jb55@jb55.com> Changelog-Fixed: Dismiss qr screen on scan
This commit is contained in:
committed by
William Casarin
parent
fb179ac1d4
commit
29bba15230
@@ -258,6 +258,7 @@ struct QRCodeView: View {
|
|||||||
DispatchQueue.main.asyncAfter(deadline: .now() + animationDuration) {
|
DispatchQueue.main.asyncAfter(deadline: .now() + animationDuration) {
|
||||||
if let scanResult {
|
if let scanResult {
|
||||||
damus_state.nav.push(route: Route.ProfileByKey(pubkey: scanResult.pubkey))
|
damus_state.nav.push(route: Route.ProfileByKey(pubkey: scanResult.pubkey))
|
||||||
|
presentationMode.wrappedValue.dismiss()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user