MimiAlertPresenter

public final class MimiAlertPresenter : MimiAlertPresentable

Alert presenter that will use active MimiAlertPresentable in MimiAppearance theme.

  • Present alert from the currently active Alert Presenter.

    Declaration

    Swift

    @discardableResult
    public static func present(alert: MimiAlert,
                               from presentingViewController: UIViewController,
                               animated: Bool,
                               completion: (() -> Void)?) -> MimiAlertPresentable
    Parameters
    alert

    Alert to present.

    presentingViewController

    View controller to present from.

    animated

    Whether to animate the presentation.

    completion

    Completion handler

    Return Value

    Alert Presenter if successfully presented.