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 { ...@@ -46,14 +46,12 @@ public struct RegisterView: View {
viewStore.send(.registerTapped) viewStore.send(.registerTapped)
} label: { } label: {
HStack { HStack {
Text("Register")
Spacer()
if viewStore.isRegistering { if viewStore.isRegistering {
ProgressView().padding(.trailing) ProgressView()
Text("Registering...")
} else {
Text("Register")
} }
} }
.frame(maxWidth: .infinity)
} }
} }
......
...@@ -29,21 +29,18 @@ public struct WelcomeView: View { ...@@ -29,21 +29,18 @@ public struct WelcomeView: View {
viewStore.send(.newAccountTapped) viewStore.send(.newAccountTapped)
} label: { } label: {
HStack { HStack {
Text("New Account")
Spacer()
if viewStore.isCreatingAccount { if viewStore.isCreatingAccount {
ProgressView().padding(.trailing) ProgressView()
Text("Creating Account...")
} else {
Text("New Account")
} }
} }
.frame(maxWidth: .infinity)
} }
Button { Button {
viewStore.send(.restoreTapped) viewStore.send(.restoreTapped)
} label: { } label: {
Text("Restore from Backup") Text("Restore from Backup")
.frame(maxWidth: .infinity)
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment