DialogMessageViewController
final class DialogMessageViewController : DialogViewController
Dialog with a message label.
Basic alternative to the system UIAlertController
.
-
Content view.
Declaration
Swift
let contentView: UIView
-
Title label.
Declaration
Swift
let titleLabel: UILabel
-
Message label.
Declaration
Swift
let messageLabel: UILabel
-
Creates a
DialogMessageViewController
with a message label.Note
Alternative to the system
UIAlertController
.Declaration
Swift
init(title: String, message: String, successButtonTitle: String? = nil, completion: @escaping (Bool) -> Void)
Parameters
title
Title of the dialog.
successButtonTitle
Title for the success button.
nil
by default.completion
Completion handler with the success flag. If it’s
false
then the dialog was cancelled.