File tree 1 file changed +9
-12
lines changed
FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Views 1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ extension UpdatePasswordView: View {
44
44
. padding ( . vertical, 6 )
45
45
. background ( Divider ( ) , alignment: . bottom)
46
46
. padding ( . bottom, 8 )
47
+
47
48
Divider ( )
48
49
49
50
LabeledContent {
@@ -56,24 +57,20 @@ extension UpdatePasswordView: View {
56
57
. padding ( . vertical, 6 )
57
58
. background ( Divider ( ) , alignment: . bottom)
58
59
. padding ( . bottom, 8 )
60
+
59
61
Divider ( )
62
+
60
63
Button ( action: {
61
64
Task {
62
65
try await authService. updatePassword ( to: confirmPassword)
63
66
authService. authView = . authPicker
64
67
}
65
- } ) {
66
- if authService. authenticationState != . authenticating {
67
- Text ( " Update password " )
68
- . padding ( . vertical, 8 )
69
- . frame ( maxWidth: . infinity)
70
- } else {
71
- ProgressView ( )
72
- . progressViewStyle ( CircularProgressViewStyle ( tint: . white) )
73
- . padding ( . vertical, 8 )
74
- . frame ( maxWidth: . infinity)
75
- }
76
- }
68
+ } , label: {
69
+ Text ( " Update password " )
70
+ . padding ( . vertical, 8 )
71
+ . frame ( maxWidth: . infinity)
72
+
73
+ } )
77
74
. disabled ( !isValid)
78
75
. padding ( [ . top, . bottom] , 8 )
79
76
. frame ( maxWidth: . infinity)
You can’t perform that action at this time.
0 commit comments