AuthUIDelegate
@objc(FIRAuthUIDelegate)
public protocol AuthUIDelegate : NSObjectProtocolA protocol to handle user interface interactions for Firebase Auth.
This protocol is available on iOS, macOS Catalyst, and tvOS only.
-
If implemented, this method will be invoked when Firebase Auth needs to display a view controller.
Declaration
Swift
@objc(presentViewController:animated:completion:) func present(_ viewControllerToPresent: UIViewController, animated flag: Bool, completion: (() -> Void)?)Parameters
viewControllerToPresentThe view controller to be presented.
flagDecides whether the view controller presentation should be animated.
completionThe block to execute after the presentation finishes. This block has no return value and takes no parameters.
-
If implemented, this method will be invoked when Firebase Auth needs to display a view controller.
Declaration
Swift
@objc(dismissViewControllerAnimated:completion:) func dismiss(animated flag: Bool, completion: (() -> Void)?)Parameters
flagDecides whether removing the view controller should be animated or not.
completionThe block to execute after the presentation finishes. This block has no return value and takes no parameters.