File tree Expand file tree Collapse file tree
FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Views Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,34 +47,42 @@ extension EmailLinkView: View {
4747 Image ( systemName: " at " )
4848 }
4949 )
50- Button ( action : {
50+ Button {
5151 Task {
5252 await sendEmailLink ( )
5353 authService. emailLink = email
5454 }
55- } ) {
55+ } label : {
5656 Text ( authService. string. sendEmailLinkButtonLabel)
5757 . padding ( . vertical, 8 )
5858 . frame ( maxWidth: . infinity)
5959 }
60+ . buttonStyle ( . borderedProminent)
6061 . disabled ( !CommonUtils. isValidEmail ( email) )
6162 . padding ( [ . top, . bottom] , 8 )
6263 . frame ( maxWidth: . infinity)
63- . buttonStyle ( . borderedProminent)
6464 }
6565 . frame ( maxWidth: . infinity, maxHeight: . infinity, alignment: . top)
6666 . navigationTitle ( authService. string. signInWithEmailLinkViewTitle)
6767 . safeAreaPadding ( )
6868 . sheet ( isPresented: $showModal) {
69- VStack {
69+ VStack ( spacing : 24 ) {
7070 Text ( authService. string. signInWithEmailLinkViewMessage)
71- . padding ( )
72- Button ( authService . string . okButtonLabel ) {
71+ . font ( . headline )
72+ Button {
7373 showModal = false
74+ } label: {
75+ Text ( authService. string. okButtonLabel)
76+ . padding ( . vertical, 8 )
77+ . frame ( maxWidth: . infinity)
7478 }
75- . padding ( )
79+ . buttonStyle ( . borderedProminent)
80+ . padding ( [ . top, . bottom] , 8 )
81+ . frame ( maxWidth: . infinity)
7682 }
77- . padding ( )
83+ . frame ( maxWidth: . infinity, maxHeight: . infinity, alignment: . top)
84+ . safeAreaPadding ( )
85+ . presentationDetents ( [ . medium] )
7886 }
7987 . onOpenURL { url in
8088 Task {
You can’t perform that action at this time.
0 commit comments