Skip to content

Commit

Permalink
FIxes Swift name for the new protocol. (firebase#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
XiangtianDai authored Sep 19, 2017
1 parent aa591ff commit 533d647
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Example/Auth/SwiftSample/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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!

Expand Down
3 changes: 2 additions & 1 deletion Firebase/Auth/Source/Public/FIRAuthUIDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ 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
Expand Down

0 comments on commit 533d647

Please sign in to comment.