layout
This commit is contained in:
parent
49cc76d4ff
commit
382ac4cdd0
@ -140,17 +140,19 @@ struct NewChatView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ViewBuilder private func prepareAndInviteView() -> some View {
|
private func prepareAndInviteView() -> some View {
|
||||||
if connReqInvitation != "" {
|
ZStack { // ZStack is needed for views to not make transitions between each other
|
||||||
InviteView(
|
if connReqInvitation != "" {
|
||||||
invitationUsed: $invitationUsed,
|
InviteView(
|
||||||
contactConnection: $contactConnection,
|
invitationUsed: $invitationUsed,
|
||||||
connReqInvitation: connReqInvitation
|
contactConnection: $contactConnection,
|
||||||
)
|
connReqInvitation: connReqInvitation
|
||||||
} else if creatingConnReq {
|
)
|
||||||
creatingLinkProgressView()
|
} else if creatingConnReq {
|
||||||
} else {
|
creatingLinkProgressView()
|
||||||
retryButton()
|
} else {
|
||||||
|
retryButton()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -188,7 +190,7 @@ struct NewChatView: View {
|
|||||||
Button {
|
Button {
|
||||||
createInvitation(selection)
|
createInvitation(selection)
|
||||||
} label: {
|
} label: {
|
||||||
VStack {
|
VStack(spacing: 6) {
|
||||||
Image(systemName: "arrow.counterclockwise")
|
Image(systemName: "arrow.counterclockwise")
|
||||||
Text("Retry")
|
Text("Retry")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user