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 DialogTitleViewController with text field.

    Note

    Alternative to the system UIAlertController.

    Declaration

    Swift

    init(title: String, successButtonTitle: String? = nil, cancelButtonTitle: String? = nil, completion: (CompletionHandler)? = nil)

    Parameters

    title

    Title of the dialog.

    successButtonTitle

    Title for the success button. nil by default.

    cancelButtonTitle

    Title for the cancel button. nil by default.

    completion

    Completion handler with the title string. If it’s nil then the dialog was cancelled. nil by default.