ios: fix empty qr code reader when swapping to connect via link (#5016)

This commit is contained in:
Diogo
2024-10-10 19:06:25 +01:00
committed by GitHub
parent baa585357f
commit e9a99dfb3c
@@ -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