DialogTitleViewController
class DialogTitleViewController : DialogViewController
extension DialogTitleViewController: UITextFieldDelegate
Dialog with a text field.
Basic alternative to the system UIAlertController.
-
Text field to input a desired title.
Declaration
Swift
let titleTextField: UITextField -
Success button title.
Declaration
Swift
let successButtonTitle: String -
Cancel button title.
Declaration
Swift
let cancelButtonTitle: String -
Completion handler of type
CompletionHandler.Declaration
Swift
var completionHandler: CompletionHandler? -
Background color of the success button.
Declaration
Swift
var successColor: UIColor { get set } -
Creates a
DialogTitleViewControllerwith text field.Note
Alternative to the system
UIAlertController.Declaration
Swift
init(title: String, successButtonTitle: String? = nil, cancelButtonTitle: String? = nil, completion: (CompletionHandler)? = nil)Parameters
titleTitle of the dialog.
successButtonTitleTitle for the success button.
nilby default.cancelButtonTitleTitle for the cancel button.
nilby default.completionCompletion handler with the title string. If it’s
nilthen the dialog was cancelled.nilby default.
View on GitHub
Install in Dash
DialogTitleViewController Class Reference