Skip to content

Commit 7440d4e

Browse files
fix: move to alert
1 parent bf99d15 commit 7440d4e

File tree

1 file changed

+8
-18
lines changed

1 file changed

+8
-18
lines changed

FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Views/SignedInView.swift

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -143,25 +143,15 @@ extension SignedInView: View {
143143
)
144144
.presentationDetents([.medium])
145145
}
146-
.sheet(isPresented: $showEmailVerificationSent) {
147-
VStack(spacing: 24) {
148-
Text(authService.string.verifyEmailSheetMessage)
149-
.font(.headline)
150-
Text("Please tap on the link in your email to complete verification.")
151-
Button {
152-
showEmailVerificationSent = false
153-
} label: {
154-
Text(authService.string.okButtonLabel)
155-
.padding(.vertical, 8)
156-
.frame(maxWidth: .infinity)
157-
}
158-
.buttonStyle(.borderedProminent)
159-
.padding([.top, .bottom], 8)
160-
.frame(maxWidth: .infinity)
146+
.alert(
147+
authService.string.verifyEmailSheetMessage,
148+
isPresented: $showEmailVerificationSent
149+
) {
150+
Button(authService.string.okButtonLabel) {
151+
showEmailVerificationSent = false
161152
}
162-
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .top)
163-
.safeAreaPadding()
164-
.presentationDetents([.medium])
153+
} message: {
154+
Text("Please tap on the link in your email to complete verification.")
165155
}
166156
}
167157
}

0 commit comments

Comments
 (0)