We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afd1ee6 commit 7866bf8Copy full SHA for 7866bf8
FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Services/AuthService.swift
@@ -1,5 +1,6 @@
1
@preconcurrency import FirebaseAuth
2
import SwiftUI
3
+import SwiftUICore
4
5
public protocol ExternalAuthProvider {
6
var id: String { get }
@@ -96,7 +97,8 @@ public final class AuthService {
96
97
98
public var authModalViewBuilderRegistry: [AuthModalContentType: () -> AnyView] = [:]
99
- public func registerModalView(for type: AuthModalContentType, builder: @escaping () -> AnyView) {
100
+ public func registerModalView(for type: AuthModalContentType,
101
+ @ViewBuilder builder: @escaping () -> AnyView) {
102
authModalViewBuilderRegistry[type] = builder
103
}
104
0 commit comments