Browse Source

FIxes Swift name for the new protocol. (#289)

Xiangtian Dai 8 năm trước cách đây
mục cha
commit
30cf84e3ce

+ 1 - 1
AuthSamples/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!
 

+ 3 - 3
Firebase/Auth/Source/Public/FIRAuthUIDelegate.h

@@ -23,9 +23,9 @@ NS_ASSUME_NONNULL_BEGIN
 
 /** @protocol FIRAuthUIDelegate
     @brief A protocol to handle user interface interactions for Firebase Auth.
-*/
-
-@protocol FIRAuthUIDelegate  <NSObject>
+ */
+FIR_SWIFT_NAME(AuthUIDelegate)
+@protocol FIRAuthUIDelegate <NSObject>
 
 /** @fn presentViewController:animated:completion:
     @brief If implemented, this method will be invoked when Firebase Auth needs to display a view