AlertFactory
public class AlertFactory
A Factory class that returns an AlertController
-
Returns an AlertViewController with an OK button and displays a message on the view controller.
Declaration
Swift
public static func makeAlert(viewController: UIViewController? = nil, message: String, buttonTitle: String) -> UIAlertControllerParameters
viewControllerThe view controller to present the alert
messageThe message to display
buttonTitleThe button title
Return Value
UIAlertController
View on GitHub
AlertFactory Class Reference