From e9a99dfb3c9703da5c3a98c1aab103a8f66c08b5 Mon Sep 17 00:00:00 2001 From: Diogo Date: Thu, 10 Oct 2024 19:06:25 +0100 Subject: [PATCH] ios: fix empty qr code reader when swapping to connect via link (#5016) --- apps/ios/Shared/Views/NewChat/NewChatView.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/ios/Shared/Views/NewChat/NewChatView.swift b/apps/ios/Shared/Views/NewChat/NewChatView.swift index 63f2e789db..5ff680d5f3 100644 --- a/apps/ios/Shared/Views/NewChat/NewChatView.swift +++ b/apps/ios/Shared/Views/NewChat/NewChatView.swift @@ -97,6 +97,11 @@ struct NewChatView: View { } .pickerStyle(.segmented) .padding() + .onChange(of: $selection.wrappedValue) { opt in + if opt == NewChatOption.connect { + showQRCodeScanner = true + } + } VStack { // it seems there's a bug in iOS 15 if several views in switch (or if-else) statement have different transitions