UIViewController
public extension UIViewController
extension UIViewController: HyperwalletFlowDelegate
extension UIViewController: UIAdaptivePresentationControllerDelegate
The UIViewController extension
-
To set the display mode for large titles
Declaration
Swift
func titleDisplayMode(_ mode: UINavigationItem.LargeTitleDisplayMode, for title: String?)
Parameters
mode
UINavigationItem.LargeTitleDisplayMode
title
title displayed
-
Hide keyboard when tapped around on the screen
Declaration
Swift
func hideKeyboardWhenTappedAround()
-
Protocol method
Declaration
Swift
@objc open func didFlowComplete(with response: Any)
-
The reference to call didFlowComplete
Declaration
Swift
public weak var flowDelegate: HyperwalletFlowDelegate? { get set }
-
The reference to start/navigate Hyperwallet UI SDK flow
Declaration
Swift
public var coordinator: HyperwalletCoordinator? { get set }
-
Data required to initialize a flow (render UI screen)
Declaration
Swift
public var initializationData: [InitializationDataField : Any]? { get set }
-
Removes the current coordinator while moving back
Declaration
Swift
public func removeCoordinator()
-
Removes the current flow delegate while moving back
Declaration
Swift
public func removeFlowDelegate()
-
Removes the current coordinator while moving back
Declaration
Swift
public func removeInitializedData()
-
Removes all coordinators
Declaration
Swift
public func removeAllCoordinators()
-
Removes the current coordinator after dismissing the Controller
Declaration
Swift
public func presentationControllerDidDismiss(_ presentationController: UIPresentationController)