We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 786bdd1 commit 7820b56Copy full SHA for 7820b56
1 file changed
FirebaseSwiftUI/FirebasePhoneAuthSwiftUI/Sources/Services/PhoneAuthProviderAuthUI.swift
@@ -104,10 +104,20 @@ private struct PhoneAuthFlowView: View {
104
}
105
106
.toolbar {
107
- ToolbarItem(placement: .cancellationAction) {
108
- Button("Cancel") {
109
- coordinator.cancel()
110
- }
+ toolbar
+ }
+ .interactiveDismissDisabled(authService.configuration.interactiveDismissEnabled)
111
112
+
113
+ @ToolbarContentBuilder
114
+ var toolbar: some ToolbarContent {
115
+ ToolbarItem(placement: .topBarTrailing) {
116
+ if !authService.configuration.shouldHideCancelButton {
117
+ Button {
118
+ coordinator.cancel()
119
+ } label: {
120
+ Image(systemName: "xmark")
121
122
123
0 commit comments