STRUCT
HaapiFlowViewControllerRepresentable
Contents
- Methods
init(haapiFlowResult:haapiUIKitApplication:haapiDeepLinkManageable:nibName:bundle:notificationCenter:)makeUIViewController(context:)updateUIViewController(_:context:)
 
public struct HaapiFlowViewControllerRepresentable: UIViewControllerRepresentable
A UIViewControllerRepresentable that wraps the framework's HaapiFlowViewController so that it can be used in custom presentation modes.
Methods
init(haapiFlowResult:haapiUIKitApplication:haapiDeepLinkManageable:nibName:bundle:notificationCenter:)
public init(haapiFlowResult: HaapiFlowResult,
            haapiUIKitApplication: HaapiUIKitApplication,
            haapiDeepLinkManageable: HaapiDeepLinkManageable?,
            nibName: String?,
            bundle: Bundle?,
            notificationCenter: NotificationCenter = NotificationCenter.default)
The public constructor for the HaapiFlowVCRepresentable used for custom presentation.
- Parameters:
- haapiFlowResult: An HaapiFlowResult that receives a result from the Haapi flow.
 - haapiUIKitApplication: An HaapiUIKitApplication.
 - haapiDeepLinkManageable: An HaapiDeepLinkManageable for deep link.
 - nibName:A nib name.
 - bundle: A specified bundle.
 - notificationCenter: the instance of 
NotificationCenterthat will mediate SwiftUI <> UIKit notification flow 
 
Parameters
| Name | Description | 
|---|---|
| haapiFlowResult | An HaapiFlowResult that receives a result from the Haapi flow. | 
| haapiUIKitApplication | An HaapiUIKitApplication. | 
| haapiDeepLinkManageable | An HaapiDeepLinkManageable for deep link. | 
| nibName | A nib name. | 
| bundle | A specified bundle. | 
| notificationCenter | the instance of NotificationCenter that will mediate SwiftUI <> UIKit notification flow | 
makeUIViewController(context:)
public func makeUIViewController(context: Context) -> UIViewController
Parameters
| Name | Description | 
|---|---|
| context | A context structure containing information about the current state of the system. | 
updateUIViewController(_:context:)
public func updateUIViewController(_ uiViewController: UIViewController, context: Context)
Parameters
| Name | Description | 
|---|---|
| uiViewController | Your custom view controller object. | 
| context | A context structure containing information about the current state of the system. |