diff --git a/apps/ios/Shared/Views/NewChat/NewChatView.swift b/apps/ios/Shared/Views/NewChat/NewChatView.swift index d7b63c809..0793c7ff1 100644 --- a/apps/ios/Shared/Views/NewChat/NewChatView.swift +++ b/apps/ios/Shared/Views/NewChat/NewChatView.swift @@ -140,17 +140,19 @@ struct NewChatView: View { } } - @ViewBuilder private func prepareAndInviteView() -> some View { - if connReqInvitation != "" { - InviteView( - invitationUsed: $invitationUsed, - contactConnection: $contactConnection, - connReqInvitation: connReqInvitation - ) - } else if creatingConnReq { - creatingLinkProgressView() - } else { - retryButton() + private func prepareAndInviteView() -> some View { + ZStack { // ZStack is needed for views to not make transitions between each other + if connReqInvitation != "" { + InviteView( + invitationUsed: $invitationUsed, + contactConnection: $contactConnection, + connReqInvitation: connReqInvitation + ) + } else if creatingConnReq { + creatingLinkProgressView() + } else { + retryButton() + } } } @@ -188,7 +190,7 @@ struct NewChatView: View { Button { createInvitation(selection) } label: { - VStack { + VStack(spacing: 6) { Image(systemName: "arrow.counterclockwise") Text("Retry") }