Protocols

The following protocols are available globally.

  • Declare your view controller to be suitable for ReRxSwift. This requires your view controller to add a Connection property. Please note that you do not need to explicitly specify what the associatedtypes are in your case, the compiler will derive this from the parameters to the Connection(store:mapStateToProps:mapDispatchToProps) constructor.

    Example:

    class MyViewController: UIViewController {
        let connection = Connection(
            store: store,
            mapStateToProps: mapStateToProps,
            mapDispatchToActions: mapDispatchToActions
        )
    
        ...
    
    See more

    Declaration

    Swift

    public protocol Connectable