Functions

The following functions are available globally.

  • Links text field to data flow

    Declaration

    Swift

    public func <&>
        <
        DS: FlowDataSource,
        DD: FlowDataDestination
        where
        DS.ResultType == DD.DataType,
        DS.QueryType  == String
        >
        (left: UITextField, right: DataFlow<DS, DD>) -> TextFieldReactor<DS, DD>
  • Creates data flow from compatatible data source to data destination

    Declaration

    Swift

    public func *>
        <
        DS: FlowDataSource,
        DD: FlowDataDestination
        where DS.ResultType == DD.DataType
        >
        (left: DS, right: DD) -> DataFlow<DS, DD>

    Parameters

    left

    Object of type that comply to FlowDataSource protocol

    right

    Object of type that comply to FlowDataDestination protocol

    Return Value

    Data flow from source to destination