CLASS

FormViewController

Contents

swift
open class FormViewController: BaseViewController<FormModel, FormViewControllerStyle>

A UIViewController instance that is capable of displaying a FormModel presenting a list of Messages a list of InteractionItemModel and list of Links from which the user can select one. Actions are submitted using delegation callback via HaapiFlowViewControllerDelegatereference stored in haapiFlowViewControllerDelegate property.

Methods

init(_:style:commonStyle:)

swift
override public init(
    _ model: any FormModel,
    style: FormViewControllerStyle,
    commonStyle: HaapiUIViewControllerStyle
)

init(coder:)

deinit

swift
deinit

viewDidLoad()

swift
override open func viewDidLoad()

handleProblemModel(_:)

swift
override public func handleProblemModel(_ problemModel: ProblemModel) -> Bool

handleFormModel(_:)

swift
override public func handleFormModel(_ formModel: FormModel) -> Bool

stopLoading()

swift
override public func stopLoading()

hasLoading()

swift
override public func hasLoading() -> Bool

apply(style:)

swift
override public func apply(style: FormViewControllerStyle)