From f841c50131ecacbcc7de3ef9deb318579264a582 Mon Sep 17 00:00:00 2001 From: Xiangtian Dai Date: Tue, 19 Sep 2017 13:49:41 -0700 Subject: [PATCH 1/2] FIxes Swift name for the new protocol. --- Example/Auth/SwiftSample/ViewController.swift | 2 +- Firebase/Auth/Source/Public/FIRAuthUIDelegate.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Example/Auth/SwiftSample/ViewController.swift b/Example/Auth/SwiftSample/ViewController.swift index e90b727a3cd..a35faebefcb 100644 --- a/Example/Auth/SwiftSample/ViewController.swift +++ b/Example/Auth/SwiftSample/ViewController.swift @@ -19,7 +19,7 @@ import UIKit import FirebaseCommunity.FirebaseAuth import GoogleSignIn -final class ViewController: UIViewController, UITextFieldDelegate, FIRAuthUIDelegate { +final class ViewController: UIViewController, UITextFieldDelegate, AuthUIDelegate { /// The profile image for the currently signed-in user. @IBOutlet weak var profileImage: UIImageView! diff --git a/Firebase/Auth/Source/Public/FIRAuthUIDelegate.h b/Firebase/Auth/Source/Public/FIRAuthUIDelegate.h index ee044dc2568..a53dee65903 100644 --- a/Firebase/Auth/Source/Public/FIRAuthUIDelegate.h +++ b/Firebase/Auth/Source/Public/FIRAuthUIDelegate.h @@ -24,6 +24,7 @@ NS_ASSUME_NONNULL_BEGIN /** @protocol FIRAuthUIDelegate @brief A protocol to handle user interface interactions for Firebase Auth. */ +FIR_SWIFT_NAME(AuthUIDelegate) @protocol FIRAuthUIDelegate /** @fn presentViewController:animated:completion: From dcbfc516c6bb254f6d5fbe99d350502b5aa42338 Mon Sep 17 00:00:00 2001 From: Xiangtian Dai Date: Tue, 19 Sep 2017 13:53:46 -0700 Subject: [PATCH 2/2] Removes extra space. --- Firebase/Auth/Source/Public/FIRAuthUIDelegate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Firebase/Auth/Source/Public/FIRAuthUIDelegate.h b/Firebase/Auth/Source/Public/FIRAuthUIDelegate.h index a53dee65903..5fc5dc53245 100644 --- a/Firebase/Auth/Source/Public/FIRAuthUIDelegate.h +++ b/Firebase/Auth/Source/Public/FIRAuthUIDelegate.h @@ -25,7 +25,7 @@ NS_ASSUME_NONNULL_BEGIN @brief A protocol to handle user interface interactions for Firebase Auth. */ FIR_SWIFT_NAME(AuthUIDelegate) -@protocol FIRAuthUIDelegate +@protocol FIRAuthUIDelegate /** @fn presentViewController:animated:completion: @brief If implemented, this method will be invoked when Firebase Auth needs to display a view