GenericAlertViewController
open class GenericAlertViewController : NibViewController, AlertEmbeddableViewController
An AlertEmbeddableViewController that can display
a heading message, a subheading message, and a dynamic count of buttons in a UIStackView
-
Undocumented
Declaration
Swift
@IBOutlet public weak var headingLabel: UILabel! -
Undocumented
Declaration
Swift
@IBOutlet public weak var subheadingLabel: UILabel! -
Undocumented
Declaration
Swift
@IBOutlet public weak var stackView: UIStackView! -
Undocumented
Declaration
Swift
public var delegate: AlertEmbeddableViewControllerDelegate? -
Undocumented
Declaration
Swift
public var heading: String! -
Undocumented
Declaration
Swift
public var subheading: String! -
Undocumented
Declaration
Swift
public var buttons: [String] -
Undocumented
Declaration
Swift
public var itemBorderColor: UIColor -
Undocumented
Declaration
Swift
public var itemBorderWitdh: CGFloat -
Closure that will be executed once the user tapped a button returning its index for the receiving end to handle
Declaration
Swift
public var didTapActionButton: ((Int) -> Void)? -
Declaration
Swift
override open func setup() -
Creates an
Nnumber ofUIButtonand adds it into theUIStackViewwhereNis the count ofbuttonsarrayDeclaration
Swift
open func addButtons() -
Detects and sets the
UIStackView‘s axis depending on the width of theUIStackViewand the number of buttonsDeclaration
Swift
open func setupStackAxis()
View on GitHub
GenericAlertViewController Class Reference