AlertViewPresenter
public protocol AlertViewPresenter
AlertViewPresenter abstracts the logic of presenting different type of alerts.
-
Presents a new alert. The alert’s information is stored in the ErrorAlertViewModel passed by parameter.
Declaration
Swift
func presentAlert(_ alertViewModel: ErrorAlertViewModel, completion: (() -> Void)?) -
Presents a new alert. The alert’s information is stored in the ConfirmationAlertViewModel passed by parameter.
Declaration
Swift
func presentAlert(_ alertViewModel: ConfirmationAlertViewModel, completion: (() -> Void)?)
AlertViewPresenter Protocol Reference