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 N number of UIButton and adds it into the UIStackView where N is the count of buttons array

    Declaration

    Swift

    open func addButtons()
  • Detects and sets the UIStackView‘s axis depending on the width of the UIStackView and the number of buttons

    Declaration

    Swift

    open func setupStackAxis()