Flows

public class Flows

Utility functions to synchronize Flows readyness

  • Allow to be triggered only when Flows given as parameters are ready to be displayed. Once it is the case, the block is executed

    Declaration

    Swift

    public static func whenReady<RootType: UIViewController>(flows: [Flow],
                                                             block: @escaping ([RootType]) -> Void)

    Parameters

    flows

    Flow(s) to be observed

    block

    block to execute whenever the Flows are ready to use

  • Allow to be triggered only when Flows given as parameters are ready to be displayed. Once it is the case, the block is executed

    Declaration

    Swift

    public static func whenReady<RootType1, RootType2, RootType3, RootType4, RootType5> (flow1: Flow,
                                                                                         flow2: Flow,
                                                                                         flow3: Flow,
                                                                                         flow4: Flow,
                                                                                         flow5: Flow,
                                                                                         block: @escaping (_ flow1Root: RootType1,
        _ flow2Root: RootType2,
        _ flow3Root: RootType3,
        _ flow4Root: RootType4,
        _ flow5Root: RootType5) -> Void)
        where
        RootType1: UIViewController,
        RootType2: UIViewController,
        RootType3: UIViewController,
        RootType4: UIViewController,
        RootType5: UIViewController

    Parameters

    flow1

    first Flow to be observed

    flow2

    second Flow to be observed

    flow3

    third Flow to be observed

    flow4

    fourth Flow to be observed

    flow5

    fifth Flow to be observed

    block

    block to execute whenever the Flows are ready to use

  • Allow to be triggered only when Flows given as parameters are ready to be displayed. Once it is the case, the block is executed

    Declaration

    Swift

    public static func whenReady<RootType1, RootType2, RootType3, RootType4> (flow1: Flow,
                                                                              flow2: Flow,
                                                                              flow3: Flow,
                                                                              flow4: Flow,
                                                                              block: @escaping (_ flow1Root: RootType1,
        _ flow2Root: RootType2,
        _ flow3Root: RootType3,
        _ flow4Root: RootType4) -> Void)
        where
        RootType1: UIViewController,
        RootType2: UIViewController,
        RootType3: UIViewController,
        RootType4: UIViewController

    Parameters

    flow1

    first Flow to be observed

    flow2

    second Flow to be observed

    flow3

    third Flow to be observed

    flow4

    fourth Flow to be observed

    block

    block to execute whenever the Flows are ready to use

  • Allow to be triggered only when Flows given as parameters are ready to be displayed. Once it is the case, the block is executed

    Declaration

    Swift

    public static func whenReady<RootType1, RootType2, RootType3> (flow1: Flow,
                                                                   flow2: Flow,
                                                                   flow3: Flow,
                                                                   block: @escaping (_ flow1Root: RootType1,
        _ flow2Root: RootType2,
        _ flow3Root: RootType3) -> Void)
        where
        RootType1: UIViewController,
        RootType2: UIViewController,
        RootType3: UIViewController

    Parameters

    flow1

    first Flow to be observed

    flow2

    second Flow to be observed

    flow3

    third Flow to be observed

    block

    block to execute whenever the Flows are ready to use

  • Allow to be triggered only when Flows given as parameters are ready to be displayed. Once it is the case, the block is executed

    Declaration

    Swift

    public static func whenReady<RootType1: UIViewController, RootType2: UIViewController> (flow1: Flow,
                                                                                            flow2: Flow,
                                                                                            block: @escaping (_ flow1Root: RootType1,
        _ flow2Root: RootType2) -> Void)

    Parameters

    flow1

    first Flow to be observed

    flow2

    second Flow to be observed

    block

    block to execute whenever the Flows are ready to use

  • Allow to be triggered only when Flow given as parameters is ready to be displayed. Once it is the case, the block is executed

    Declaration

    Swift

    public static func whenReady<RootType>(flow1: Flow, block: @escaping (_ flowRoot1: RootType) -> Void) where RootType : UIViewController

    Parameters

    flow1

    Flow to be observed

    block

    block to execute whenever the Flow is ready to use