FlowPresentationDelegate
public protocol FlowPresentationDelegate : AnyObject
Implementers must present appripriately the ViewControllers provided by the onboarding steps Different implementers can present the ViewControllers differently but must be appropriate for the ViewController design of the used steps. For example if a step uses a ViewController designed to use NavigationController the presenter must put the ViewController into a NavigationController
-
Protocol function which presents the UIViewController
Declaration
Swift
func present(_ viewController: UIViewController, completionHandler: @escaping (Error?) -> Void)
Parameters
viewController
UIViewController to present
completionHandler
called when the UIViewController is presented. Error filled on failure.
-
Dismiss the presented UIViewController
Declaration
Swift
func dismiss(completionHandler: @escaping (Error?) -> Void)
Parameters
completionHandler
called when the dismiss happened. Error filled on failure.
-
Sets the infoScreen text
Declaration
Swift
func setInfoText(_ text: String)
Parameters
text
String to set as infoScreenText
-
The presentation state: provides information for the users of the delegate about the state of the
OnboardingFlow
so they can behave differentlyDeclaration
Swift
var state: PresentationState { get set }