From 8420a499951d9121b66cc88757a31144c79b43c6 Mon Sep 17 00:00:00 2001 From: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com> Date: Thu, 30 Nov 2023 22:06:27 +0400 Subject: [PATCH] layout, add conn --- apps/ios/Shared/Views/NewChat/NewChatView.swift | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/apps/ios/Shared/Views/NewChat/NewChatView.swift b/apps/ios/Shared/Views/NewChat/NewChatView.swift index 0e61ff94d..0eeb66208 100644 --- a/apps/ios/Shared/Views/NewChat/NewChatView.swift +++ b/apps/ios/Shared/Views/NewChat/NewChatView.swift @@ -98,6 +98,8 @@ struct NewChatView: View { let (r, alert) = await apiAddContact(incognito: incognitoGroupDefault.get()) if let (connReq, pcc) = r { await MainActor.run { + // TODO add connection to model if shared, or view dismissed by connected event + m.updateContactConnection(pcc) connReqInvitation = connReq contactConnection = pcc m.connReqInv = connReq @@ -295,10 +297,13 @@ private struct ConnectView: View { .aspectRatio(contentMode: .fill) .frame(maxWidth: .infinity, maxHeight: .infinity) .foregroundColor(Color.clear) - Image(systemName: "camera") - .resizable() - .aspectRatio(contentMode: .fit) - .frame(width: 72) + VStack { + Image(systemName: "camera") + .resizable() + .aspectRatio(contentMode: .fit) + .frame(width: 28) + Text("Tap to scan") + } } } .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .center)