Skip to content
Snippets Groups Projects
Commit a5c9f161 authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Update buttons appearance

parent a020aae2
No related branches found
No related tags found
3 merge requests!102Release 1.0.0,!62Messenger example - account deletion,!61Messenger example - account deletion
......@@ -46,14 +46,12 @@ public struct RegisterView: View {
viewStore.send(.registerTapped)
} label: {
HStack {
if viewStore.isRegistering {
ProgressView().padding(.trailing)
Text("Registering...")
} else {
Text("Register")
Spacer()
if viewStore.isRegistering {
ProgressView()
}
}
.frame(maxWidth: .infinity)
}
}
......
......@@ -29,21 +29,18 @@ public struct WelcomeView: View {
viewStore.send(.newAccountTapped)
} label: {
HStack {
if viewStore.isCreatingAccount {
ProgressView().padding(.trailing)
Text("Creating Account...")
} else {
Text("New Account")
Spacer()
if viewStore.isCreatingAccount {
ProgressView()
}
}
.frame(maxWidth: .infinity)
}
Button {
viewStore.send(.restoreTapped)
} label: {
Text("Restore from Backup")
.frame(maxWidth: .infinity)
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment