@@ -34,6 +34,24 @@ public struct EmailLinkView {
34
34
extension EmailLinkView : View {
35
35
public var body : some View {
36
36
VStack {
37
+ HStack {
38
+ Button ( action: {
39
+ authService. authView = . authPicker
40
+ } ) {
41
+ HStack ( spacing: 4 ) {
42
+ Image ( systemName: " chevron.left " )
43
+ . font ( . system( size: 17 , weight: . medium) )
44
+ Text ( authService. string. backButtonLabel)
45
+ . font ( . system( size: 17 ) )
46
+ }
47
+ . foregroundColor ( . blue)
48
+ }
49
+ . accessibilityIdentifier ( " email-link-back-button " )
50
+
51
+ Spacer ( )
52
+ }
53
+ . padding ( . horizontal)
54
+ . padding ( . top, 8 )
37
55
Text ( authService. string. signInWithEmailLinkViewTitle)
38
56
. accessibilityIdentifier ( " email-link-title-text " )
39
57
LabeledContent {
@@ -61,6 +79,7 @@ extension EmailLinkView: View {
61
79
. frame ( maxWidth: . infinity)
62
80
. buttonStyle ( . borderedProminent)
63
81
Text ( authService. errorMessage) . foregroundColor ( . red)
82
+ Spacer ( )
64
83
} . sheet ( isPresented: $showModal) {
65
84
VStack {
66
85
Text ( authService. string. signInWithEmailLinkViewMessage)
@@ -78,14 +97,6 @@ extension EmailLinkView: View {
78
97
} catch { }
79
98
}
80
99
}
81
- . navigationBarItems ( leading: Button ( action: {
82
- authService. authView = . authPicker
83
- } ) {
84
- Image ( systemName: " chevron.left " )
85
- . foregroundColor ( . blue)
86
- Text ( authService. string. backButtonLabel)
87
- . foregroundColor ( . blue)
88
- } . accessibilityIdentifier ( " email-link-back-button " ) )
89
100
}
90
101
}
91
102
0 commit comments