DialogViewController
class DialogViewController : WSPopupViewController
Generic and reusable dialog view controller. Takes an input view and place it in the container.
-
Assign a customizable style.
Declaration
Swift
@Published var style: DialogStyle { get set }
-
Action assigned to the success button.
Declaration
Swift
var successAction: DialogAction { get set }
-
Action assigned to the abort button.
Declaration
Swift
var abortAction: DialogAction { get set }
-
Creates a
DialogViewController
with a list of items of typeT
and other parameters.Declaration
Swift
init(contentView: UIView, success: DialogAction? = nil, abort: DialogAction? = nil)
Parameters
contentView
Underlying content view of base type
UIView
for this instance.success
DialogAction
to be used to configure right button.abort
DialogAction
to be used to configure left button.