From 665b48e842994184010fc0a5aa47fd4ad8e35b75 Mon Sep 17 00:00:00 2001 From: Paul Beusterien Date: Wed, 21 Aug 2024 17:10:55 -0700 Subject: [PATCH] Update FUICustomAuthUIDelegate.swift Update sample based on learnings discussed in #1203 --- .../Samples/Auth/FUICustomAuthUIDelegate.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/swift/FirebaseUI-demo-swift/Samples/Auth/FUICustomAuthUIDelegate.swift b/samples/swift/FirebaseUI-demo-swift/Samples/Auth/FUICustomAuthUIDelegate.swift index 8ad37c3e71..ba83c0118c 100644 --- a/samples/swift/FirebaseUI-demo-swift/Samples/Auth/FUICustomAuthUIDelegate.swift +++ b/samples/swift/FirebaseUI-demo-swift/Samples/Auth/FUICustomAuthUIDelegate.swift @@ -20,7 +20,7 @@ import FirebaseEmailAuthUI class FUICustomAuthDelegate: NSObject, FUIAuthDelegate { - func authUI(_ authUI: FUIAuth, didSignInWith authDataResult: AuthDataResult?, error: Error?) { + @objc func authUI(_ authUI: FUIAuth, didSignInWith authDataResult: AuthDataResult?, error: Error?) { switch error { case .some(let error as NSError) where UInt(error.code) == FUIAuthErrorCode.userCancelledSignIn.rawValue: print("User cancelled sign-in")