FirebaseAuth Framework Reference

AuthUIDelegate

protocol AuthUIDelegate : NSObjectProtocol

@protocol FIRAuthUIDelegate A 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

    func present(_ viewControllerToPresent: UIViewController, animated flag: Bool) async

    Parameters

    viewControllerToPresent

    The view controller to be presented.

    flag

    Decides whether the view controller presentation should be animated or not.

    completion

    The 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

    func dismiss(animated flag: Bool) async

    Parameters

    flag

    Decides whether removing the view controller should be animated or not.

    completion

    The block to execute after the presentation finishes. This block has no return value and takes no parameters.