diff --git a/Examples/xx-messenger/Sources/RegisterFeature/RegisterView.swift b/Examples/xx-messenger/Sources/RegisterFeature/RegisterView.swift index 27bc0962780d7214095ff26592d66c9f6703ae52..195b655b4806b3156a4fe4353fb4cd2ec708c51b 100644 --- a/Examples/xx-messenger/Sources/RegisterFeature/RegisterView.swift +++ b/Examples/xx-messenger/Sources/RegisterFeature/RegisterView.swift @@ -46,14 +46,12 @@ public struct RegisterView: View { viewStore.send(.registerTapped) } label: { HStack { + Text("Register") + Spacer() if viewStore.isRegistering { - ProgressView().padding(.trailing) - Text("Registering...") - } else { - Text("Register") + ProgressView() } } - .frame(maxWidth: .infinity) } } diff --git a/Examples/xx-messenger/Sources/WelcomeFeature/WelcomeView.swift b/Examples/xx-messenger/Sources/WelcomeFeature/WelcomeView.swift index d3686c5aa5f1b410cea89176feecdcf050dccb3a..1205c67eece34b9214ce16b3eb6e22df93d37c4b 100644 --- a/Examples/xx-messenger/Sources/WelcomeFeature/WelcomeView.swift +++ b/Examples/xx-messenger/Sources/WelcomeFeature/WelcomeView.swift @@ -29,21 +29,18 @@ public struct WelcomeView: View { viewStore.send(.newAccountTapped) } label: { HStack { + Text("New Account") + Spacer() if viewStore.isCreatingAccount { - ProgressView().padding(.trailing) - Text("Creating Account...") - } else { - Text("New Account") + ProgressView() } } - .frame(maxWidth: .infinity) } Button { viewStore.send(.restoreTapped) } label: { Text("Restore from Backup") - .frame(maxWidth: .infinity) } } }