Skip to content

Commit 7866bf8

Browse files
chore: annotate function as view builder
1 parent afd1ee6 commit 7866bf8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Services/AuthService.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@preconcurrency import FirebaseAuth
22
import SwiftUI
3+
import SwiftUICore
34

45
public protocol ExternalAuthProvider {
56
var id: String { get }
@@ -96,7 +97,8 @@ public final class AuthService {
9697

9798
public var authModalViewBuilderRegistry: [AuthModalContentType: () -> AnyView] = [:]
9899

99-
public func registerModalView(for type: AuthModalContentType, builder: @escaping () -> AnyView) {
100+
public func registerModalView(for type: AuthModalContentType,
101+
@ViewBuilder builder: @escaping () -> AnyView) {
100102
authModalViewBuilderRegistry[type] = builder
101103
}
102104

0 commit comments

Comments
 (0)