STRUCT
HaapiFlowVCRepresentable
Contents
- Methods
init(contentViewController:presentationMode:)
makeUIViewController(context:)
updateUIViewController(_:context:)
public struct HaapiFlowVCRepresentable: UIViewControllerRepresentable
A UIViewControllerRepresentable
that wraps the framework's HaapiFlowViewController
so that it can be used in custom presentation modes.
- Note: Cannot be used in iOS 17 because it causes a retaining cycle on HaapiViewController. Use
HaapiFlowViewControllerRepresentable
instead. - Important: This class will not be supported anymore and it will be removed on next major version.
Methods
init(contentViewController:presentationMode:)
public init(contentViewController: HaapiFlowViewController, presentationMode: PresentationMode)
makeUIViewController(context:)
public func makeUIViewController(context: Context) -> some UIViewController
Parameters
Name | Description |
---|---|
context | A context structure containing information about the current state of the system. |
updateUIViewController(_:context:)
public func updateUIViewController(_ uiViewController: UIViewControllerType, context: Context)
Parameters
Name | Description |
---|---|
uiViewController | Your custom view controller object. |
context | A context structure containing information about the current state of the system. |